diff --git a/Dockerfile b/Dockerfile index 48e7eb0a11e82dda553070d1bb9422607f9a68ea..64e885591f375dc1724f7abb9ababba118497b47 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,8 +18,9 @@ ENV API_PORT=$API_PORT ENV API_PREFIX=$API_PREFIX COPY --from=build-stage /app/dist /usr/share/nginx/html + COPY nginx.conf.template /etc/nginx/conf.d/default.conf.template RUN envsubst '\$API_BASE \$API_PORT \$FRONTEND_PORT \$API_PREFIX' < /etc/nginx/conf.d/default.conf.template > /etc/nginx/conf.d/default.conf -RUN cat /etc/nginx/conf.d/default.conf + EXPOSE $FRONTEND_PORT CMD ["nginx", "-g", "daemon off;"] \ No newline at end of file