Something went wrong on our end
-
Hugo SUBTIL authoredHugo SUBTIL authored
Dockerfile 394 B
FROM node:12.13-slim
# Create app directory
WORKDIR /app
# Install app dependencies
# A wildcard is used to ensure both package.json AND package-lock.json are copied
COPY package*.json ./
RUN chgrp -R 0 /app && chmod -R g+rwX /app
RUN npm install --silent
# Bundle app source
COPY tsconfig.build.json .
COPY tsconfig.json .
COPY src src
RUN npm build
CMD npm run start:prod
EXPOSE 3000