Stupid npm log directory

This commit is contained in:
infidel 2022-11-26 11:19:26 +07:00
parent 8e30fcf213
commit b8aea60bee
2 changed files with 6 additions and 3 deletions

1
.dockerignore Normal file
View File

@ -0,0 +1 @@
npm-debug.log

View File

@ -1,11 +1,13 @@
FROM node:16
USER node
WORKDIR /home/node/app
COPY --chown=node:node package*.json ./
COPY --chown=node:node . .
COPY . .
RUN mkdir /home/node/
RUN npm install
RUN npm run build
RUN npm run build:fontawesome
EXPOSE 5000
CMD ["npm", "start", "--loglevel=verbose"]
RUN mkdir .npm
RUN mkdir /home/node/.npm
CMD ["npm", "start"]