We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4148e81 + 4aa073c commit f389861Copy full SHA for f389861
Dockerfile
@@ -1,6 +1,9 @@
1
FROM nginx:latest
2
3
-COPY build /usr/share/nginx/html
+# Copy the nginx configuration file
4
+COPY nginx.conf /etc/nginx/nginx.conf
5
+
6
+COPY build /etc/nginx/html
7
8
EXPOSE 80
9
nginx.conf
@@ -0,0 +1,14 @@
+events {}
+http {
+ server {
+ listen 80;
+ location / {
+ if (!-e $request_filename) {
+ rewrite ^(.*)$ /index.html break;
10
+ }
11
12
13
14
+}
0 commit comments