Docker update
This commit is contained in:
@ -14,4 +14,7 @@ FROM nginx:alpine
|
|||||||
|
|
||||||
COPY --from=build /app/public /usr/share/nginx/html
|
COPY --from=build /app/public /usr/share/nginx/html
|
||||||
|
|
||||||
|
# Fix for Gatsby client-side routing
|
||||||
|
RUN echo 'server { listen 80; root /usr/share/nginx/html; index index.html; location / { try_files $uri $uri/ /index.html; } }' > /etc/nginx/conf.d/default.conf
|
||||||
|
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
Reference in New Issue
Block a user