Files
server/Dockerfile
Roman Shtylman 423327d0ac update dockerfile entrypoint to use esm
Does not work using #! in bin/server without this.
2018-04-01 20:24:55 -07:00

14 lines
221 B
Docker

FROM node:9.2.1-alpine
WORKDIR /app
COPY package.json /app/
COPY yarn.lock /app/
RUN yarn install --production && yarn cache clean
COPY . /app
ENV NODE_ENV production
ENTRYPOINT ["node", "-r", "esm", "./bin/server"]