Browse Source

Update Dockerfile

pull/209/head
ComasSky 3 years ago
committed by GitHub
parent
commit
a09e4c99c7
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      Dockerfile

4
Dockerfile

@ -9,7 +9,7 @@
# #
# #
FROM docker.io/library/node:alpine AS build_node_modules
FROM docker.io/library/node:18.4.0-alpine@sha256:a27df330224bb16312064cc8653793d7438129c8ec6699ae523eb5baaa7f5fb4 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:alpine
FROM docker.io/library/node:18.4.0-alpine@sha256:a27df330224bb16312064cc8653793d7438129c8ec6699ae523eb5baaa7f5fb4
COPY --from=build_node_modules /app /app
# Move node_modules one directory up, so during development

Loading…
Cancel
Save