adminFront/Dockerfile

17 lines
536 B
Docker
Raw Normal View History

FROM penahub.gitlab.yandexcloud.net:5050/devops/dockerhub-backup/node as build
2023-02-21 19:55:00 +00:00
RUN apk update && rm -rf /var/cache/apk/*
WORKDIR /usr/app
2023-10-20 21:18:36 +00:00
COPY . .
2023-02-21 19:55:00 +00:00
RUN yarn install --ignore-scripts --non-interactive --frozen-lockfile && yarn cache clean
RUN yarn build
FROM penahub.gitlab.yandexcloud.net:5050/devops/dockerhub-backup/nginx as result
2023-02-21 19:55:00 +00:00
WORKDIR /usr/share/nginx/html
COPY --from=build /usr/app/build/ /usr/share/nginx/html
COPY admin.conf /etc/nginx/conf.d/default.conf
2024-01-21 18:47:54 +00:00
COPY cert.pem /etc/nginx/cert.pem
COPY key.pem /etc/nginx/key.pem