alexn707
5 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
5 additions and
6 deletions
-
Dockerfile
|
|
@ -8,18 +8,17 @@ 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 docker.io/library/node:lts-alpine |
|
|
|
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 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 |
|
|
|
|
|
|
|
# Install Node.js |
|
|
|
RUN apk add --no-cache \ |
|
|
|
nodejs \ |
|
|
|
npm |
|
|
|
|
|
|
|
# Move node_modules one directory up, so during development |
|
|
|
# we don't have to mount it in a volume. |
|
|
|
# This results in much faster reloading! |
|
|
|