Added nodemon as a dev dependency and removed unnecessary instructions from the Dockerfile
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user