We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6e39cb6 commit 63d5112Copy full SHA for 63d5112
Dockerfile
@@ -11,5 +11,6 @@ RUN yarn build
11
12
FROM nginx:1.19.6-alpine
13
EXPOSE 80
14
+COPY default.conf /etc/nginx/conf.d/default.conf
15
COPY --from=build /app/out /usr/share/nginx/html
16
CMD ["nginx", "-g", "daemon off;"]
default.conf
@@ -0,0 +1,11 @@
1
+server {
2
+ listen 80 default_server;
3
+ listen [::]:80 default_server;
4
+ server_name localhost;
5
+
6
+ location / {
7
+ root /usr/share/nginx/html;
8
+ index index.html index.htm;
9
+ try_files $uri $uri/ /index.html;
10
+ }
+}
0 commit comments