alexn707
5 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
7 additions and
2 deletions
-
Dockerfile
|
|
@ -8,6 +8,12 @@ WORKDIR /app |
|
|
|
RUN npm ci --omit=dev &&\ |
|
|
|
mv node_modules /node_modules |
|
|
|
|
|
|
|
# Copy build result to a new image. |
|
|
|
# This saves a lot of disk space. |
|
|
|
FROM amneziavpn/amnezia-wg:latest |
|
|
|
HEALTHCHECK CMD /usr/bin/timeout 5s /bin/sh -c "/usr/bin/wg show | /bin/grep -q interface || exit 1" --interval=1m --timeout=5s --retries=3 |
|
|
|
COPY --from=build_node_modules /app /app |
|
|
|
|
|
|
|
# Copy build result to a new image. |
|
|
|
# This saves a lot of disk space. |
|
|
|
FROM docker.io/library/node:lts-alpine |
|
|
@ -32,8 +38,7 @@ RUN apk add --no-cache \ |
|
|
|
dpkg \ |
|
|
|
dumb-init \ |
|
|
|
iptables \ |
|
|
|
iptables-legacy \ |
|
|
|
wireguard-tools |
|
|
|
iptables-legacy |
|
|
|
|
|
|
|
# Use iptables-legacy |
|
|
|
RUN update-alternatives --install /usr/sbin/iptables iptables /usr/sbin/iptables-legacy 10 --slave /usr/sbin/iptables-restore iptables-restore /usr/sbin/iptables-legacy-restore --slave /usr/sbin/iptables-save iptables-save /usr/sbin/iptables-legacy-save |
|
|
|