6 changed files with 14 additions and 22 deletions
@ -0,0 +1,12 @@
@@ -0,0 +1,12 @@
|
||||
FROM nginx |
||||
|
||||
COPY ./dist /data |
||||
COPY ./secret /secret |
||||
|
||||
RUN rm /etc/nginx/conf.d/default.conf |
||||
|
||||
ARG ENV_VAR=default_production.conf |
||||
|
||||
ADD ${ENV_VAR} /etc/nginx/conf.d/ |
||||
|
||||
RUN /bin/bash -c 'echo init ok' |
@ -1,10 +0,0 @@
@@ -1,10 +0,0 @@
|
||||
FROM nginx |
||||
|
||||
COPY ../dist /data |
||||
COPY ../secret /secret |
||||
|
||||
RUN rm /etc/nginx/conf.d/default.conf |
||||
|
||||
ADD default.conf /etc/nginx/conf.d/ |
||||
|
||||
RUN /bin/bash -c 'echo init ok' |
Loading…
Reference in new issue