status-tutorials/Dockerfile

14 lines
167 B
Docker

FROM node:10-alpine
WORKDIR /opt/app
ENV NODE_ENV production
COPY package*.json ./
COPY . /opt/app
RUN npm install --dev && npm run build
CMD [ "npm", "start" ]