28 lines
351 B
Docker
28 lines
351 B
Docker
|
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
|