Added nodemon as a dev dependency and removed unnecessary instructions from the Dockerfile

This commit is contained in:
davide-acanfora 2024-04-30 17:03:48 +02:00
parent 488e3c32b3
commit 6b2f57f2f1
4 changed files with 139 additions and 6 deletions

View file

@ -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.