thunderhub/server/Dockerfile
2020-03-22 21:16:46 +01:00

15 lines
No EOL
323 B
Docker

FROM node:11-alpine
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
COPY . .
RUN apk update && apk upgrade \
&& apk --no-cache add --virtual builds-deps build-base python \
&& yarn add node-gyp node-pre-gyp
RUN yarn install --production=true
RUN yarn global add webpack
RUN yarn build
EXPOSE 3001
CMD ["npm", "start"]