java-tutorials/docker-modules/docker-compose/exclude-subfolders/Dockerfile

7 lines
176 B
Docker

FROM node:12.18.1
ENV NODE_ENV=production
WORKDIR /app
COPY ["package.json", "package-lock.json*", "./"]
RUN npm install --production
COPY . .
CMD [ "node", "server.js" ]