From b4a7cc6b08073e7df550fc993b421d61fe80a465 Mon Sep 17 00:00:00 2001 From: alexn707 Date: Fri, 28 Feb 2025 10:48:41 +0300 Subject: [PATCH] Update Dockerfile --- Dockerfile | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index f44c4914..5e3dabc5 100644 --- a/Dockerfile +++ b/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!