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

7 lines
176 B
Docker
Raw Normal View History

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" ]