Files
ts-onlinetime-ranks/frontend/Dockerfile
2020-06-02 09:35:03 +02:00

16 lines
276 B
Docker

FROM node:14.3.0-alpine as builder
WORKDIR /app
ENV PATH /app/node_modules/.bin:$PATH
COPY ./package.json ./
RUN yarn
COPY . .
RUN yarn build
FROM node:14.3.0-alpine
WORKDIR /app
COPY --from=builder /app/build .
RUN yarn global add serve
EXPOSE 5000
CMD ["serve", "-s", ""]