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:
parent
6b06d46067
commit
d5ed6c75d7
5 changed files with 48 additions and 73 deletions
|
@ -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;"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue