fix(build): docker file priority
Last step is the default one in docker build. Signed-off-by: rjshrjndrn <rjshrjndrn@gmail.com>
This commit is contained in:
parent
c7741ebad8
commit
1134fc133c
1 changed files with 6 additions and 7 deletions
|
|
@ -5,15 +5,14 @@ RUN cp .env.example .env
|
|||
RUN yarn
|
||||
RUN yarn build
|
||||
|
||||
FROM nginx:alpine
|
||||
LABEL maintainer=Rajesh<rajesh@openreplay.com>
|
||||
|
||||
COPY --from=builder /work/public /var/www/openreplay
|
||||
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
||||
|
||||
FROM nginx:alpine as cicd
|
||||
LABEL maintainer=Rajesh<rajesh@openreplay.com>
|
||||
|
||||
COPY public /var/www/openreplay
|
||||
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
||||
|
||||
|
||||
# Default step in docker build
|
||||
FROM nginx:alpine
|
||||
LABEL maintainer=Rajesh<rajesh@openreplay.com>
|
||||
COPY --from=builder /work/public /var/www/openreplay
|
||||
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue