diff --git a/Dockerfile b/Dockerfile index 78a67f5..0fdea17 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,12 @@ FROM nginx:alpine +ARG NGINX_CONF=nginx.conf + RUN rm -f /etc/nginx/conf.d/default.conf -COPY nginx.conf /etc/nginx/conf.d/default.conf +COPY ${NGINX_CONF} /etc/nginx/conf.d/default.conf COPY dist/build/h5 /usr/share/nginx/html EXPOSE 80 -CMD ["nginx", "-g", "daemon off;"] +CMD ["nginx", "-g", "daemon off;"] \ No newline at end of file