Fix nginx config for proxy to API server

This commit is contained in:
Fred Boniface
2023-07-11 23:49:14 +01:00
parent 8676a62f1e
commit 543318dd8a
3 changed files with 27 additions and 10 deletions

View File

@@ -8,6 +8,7 @@ COPY . ./
RUN npm run build
FROM nginx:alpine-slim
RUN rm -f /etc/nginx/nginx.conf
COPY ./nginx.conf /etc/nginx/nginx.conf
COPY --from=build /app/build /usr/share/nginx/html
RUN chown -R nginx:nginx /usr/share/nginx/html