forked from mirrors/amnezia-wg-easy
Dockerfile: --omit=dev newer flag for —production
Dependency types to omit from the installation tree on disk. Will make the image a bit smaller and build take less time.
This commit is contained in:
parent
046b05eac4
commit
75180f953d
1 changed files with 1 additions and 1 deletions
|
@ -6,7 +6,7 @@ FROM docker.io/library/node:18-alpine AS build_node_modules
|
|||
# Copy Web UI
|
||||
COPY src/ /app/
|
||||
WORKDIR /app
|
||||
RUN npm ci
|
||||
RUN npm ci --omit=dev
|
||||
|
||||
# Copy build result to a new image.
|
||||
# This saves a lot of disk space.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue