ncpb/Dockerfile

28 lines
351 B
Docker
Raw Permalink Normal View History

2021-02-05 01:09:44 +00:00
FROM node:15 as build
WORKDIR /build
COPY public ./public
COPY src ./src
COPY package.json .
COPY yarn.lock .
COPY tsconfig.json .
RUN yarn install
RUN yarn build
FROM nginx
WORKDIR /app
COPY --from=build /build/build ./
COPY nginx.conf /etc/nginx/nginx.conf.template
COPY docker-entrypoint.sh /
EXPOSE 80
ENTRYPOINT /docker-entrypoint.sh