OCR-Form-Tools/Dockerfile.cdpx

16 строки
459 B
Docker
Исходник Обычный вид История

FROM node:12 AS build
2020-02-04 00:31:46 +03:00
WORKDIR /usr/src/app
ENV PATH /usr/src/app/node_modules/.bin:$PATH
COPY package*.json ./
COPY yarn.lock ./
RUN yarn install
2020-02-04 00:31:46 +03:00
COPY . .
RUN yarn build
FROM nginx:1.18.0-alpine
2020-02-04 00:31:46 +03:00
WORKDIR /usr/src/app
COPY --from=build /usr/src/app/run.sh .
COPY --from=build /usr/src/app/build /usr/share/nginx/html
RUN rm /etc/nginx/conf.d/default.conf
COPY --from=build /usr/src/app/nginx.conf /etc/nginx/conf.d/nginx.conf
2020-02-04 00:31:46 +03:00
EXPOSE 80
ENTRYPOINT [ "./run.sh" ]