fix dockerfile

This commit is contained in:
2023-09-16 20:14:31 +02:00
parent ef627d06bc
commit 0e1cb94be0

View File

@@ -7,5 +7,4 @@ RUN npm run build
FROM nginx FROM nginx
COPY --from=build /app/dist /usr/share/nginx/html COPY --from=build /app/dist /usr/share/nginx/html
COPY nginx.conf.template /etc/nginx/conf.d/default.conf.template COPY nginx.conf.template /etc/nginx/templates/default.conf.template
RUN echo "envsubst '$ESI_USER_AGENT' < /etc/nginx/conf.d/default.conf.template > /etc/nginx/conf.d/default.conf && cat /etc/nginx/conf.d/default.conf" > /docker-entrypoint.d/40-envsubst.sh & chmod +x /docker-entrypoint.d/40-envsubst.sh