Use custom nginx conf

This commit is contained in:
James Salter 2021-09-28 12:15:34 +01:00
parent 1aa2efd2ce
commit a3c4fac375
2 changed files with 49 additions and 0 deletions

View file

@ -33,5 +33,8 @@ COPY --from=builder /src/webapp /app
# Insert wasm type into Nginx mime.types file so they load correctly.
RUN sed -i '3i\ \ \ \ application/wasm wasm\;' /etc/nginx/mime.types
# Override default nginx config
COPY /nginx/config.d/default.conf /etc/nginx/config.d/default.conf
RUN rm -rf /usr/share/nginx/html \
&& ln -s /app /usr/share/nginx/html