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