Attempt to make the docker image smaller

This commit is contained in:
Apher 2026-07-07 22:42:35 +00:00
parent 490f5d37aa
commit 1142f11724
2 changed files with 10 additions and 5 deletions

View File

@ -4,3 +4,7 @@ dist-ssr
npm-debug.log
.DS_Store
.env
coverage
.cache
*.log
.git

View File

@ -3,11 +3,12 @@ FROM node:20-alpine
WORKDIR /app
COPY package*.json ./
RUN npm install
RUN npm install --no-save nodemon
#RUN npm install
#RUN npm install --no-save nodemon
RUN npm ci --omit=dev
COPY . .
COPY src ./src
EXPOSE 4000
CMD ["npx","nodemon","--watch","src","--ext","js,json","--exec","node","src/server.js"]
CMD ["node", "src/server.js"]