forked from mirrors/amnezia-wg-easy
Added nodemon as a dev dependency and removed unnecessary instructions from the Dockerfile
This commit is contained in:
parent
488e3c32b3
commit
6b2f57f2f1
4 changed files with 139 additions and 6 deletions
|
@ -3,13 +3,9 @@
|
|||
FROM docker.io/library/node:18-alpine AS build_node_modules
|
||||
|
||||
# Copy Web UI
|
||||
COPY src/ /app/
|
||||
COPY src /app
|
||||
WORKDIR /app
|
||||
RUN npm ci --omit=dev &&\
|
||||
# Enable this to run `npm run serve`
|
||||
npm i -g nodemon &&\
|
||||
# Delete unnecessary files
|
||||
npm cache clean --force && rm -rf ~/.npm &&\
|
||||
mv node_modules /node_modules
|
||||
|
||||
# Copy build result to a new image.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue