This commit is contained in:
ComasSky 2022-06-20 08:15:37 +00:00
parent d2aaf6da22
commit b50d21ae58
2 changed files with 3 additions and 17 deletions

View file

@ -9,7 +9,7 @@
# #
# #
FROM docker.io/library/node:17-alpine@sha256:0e83c810225bc29e614189acf3d6419e3c09881cefb9f7a170fdcfe3e15bbfd5 AS build_node_modules
FROM docker.io/library/node:alpine AS build_node_modules
# Copy Web UI
COPY src/ /app/
@ -18,7 +18,7 @@ RUN npm ci --production
# Copy build result to a new image.
# This saves a lot of disk space.
FROM docker.io/library/node:17-alpine@sha256:0e83c810225bc29e614189acf3d6419e3c09881cefb9f7a170fdcfe3e15bbfd5
FROM docker.io/library/node:alpine
COPY --from=build_node_modules /app /app
# Move node_modules one directory up, so during development