1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 04:46:40 +07:00

Using custom registry (#75)

This commit is contained in:
muerwre 2021-09-30 14:54:52 +07:00 committed by GitHub
parent 6b06d46067
commit d5ed6c75d7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 48 additions and 73 deletions

View file

@ -1,13 +1,15 @@
# stage1 as builder
FROM node:dubnium-alpine as builder
COPY package.json yarn.lock ./
RUN yarn
COPY . .
ARG REACT_APP_API_HOST
ARG REACT_APP_REMOTE_CURRENT
ENV REACT_APP_API_HOST $REACT_APP_API_HOST
ENV REACT_APP_REMOTE_CURRENT $REACT_APP_REMOTE_CURRENT
RUN yarn build
FROM nginx:alpine
COPY docker/www/nginx.conf /etc/nginx/nginx.conf
RUN rm -rf /usr/share/nginx/html/*
COPY --from=builder /build /usr/share/nginx/html
EXPOSE ${EXPOSE} 80
ENTRYPOINT ["nginx", "-g", "daemon off;"]