Make frontend nginx conf suitable for k8s or local deployment (no need for 'old' deployment bits)

This commit is contained in:
James Wilson
2021-08-14 11:57:52 +01:00
parent 8793d0fd5b
commit 53f7769146
7 changed files with 12 additions and 112 deletions
+1 -2
View File
@@ -25,9 +25,8 @@ COPY --from=builder /opt/builder/env.sh /usr/bin/
RUN apk add --no-cache bash; chmod +x /usr/bin/env.sh
COPY --from=builder /opt/builder/nginx/nginx.conf /etc/nginx/nginx.conf
COPY --from=builder /opt/builder/nginx/default /etc/nginx/sites-available/default
COPY --from=builder /opt/builder/build /usr/share/nginx/html
EXPOSE 80
EXPOSE 8000
CMD ["/bin/bash", "-c", "/usr/bin/env.sh && nginx -g \"daemon off;\""]