feat: add nginx conf
This commit is contained in:
parent
8ee0748740
commit
e4f6863e21
@ -6,3 +6,4 @@ RUN yarn && yarn build
|
||||
FROM nginx as runner
|
||||
WORKDIR /usr/share/nginx/html
|
||||
COPY --from=builder /src/dist .
|
||||
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
10
nginx.conf
Normal file
10
nginx.conf
Normal file
@ -0,0 +1,10 @@
|
||||
server {
|
||||
listen 80 default_server;
|
||||
server_name _;
|
||||
root /usr/share/nginx/html;
|
||||
index index.html;
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ /index.html =404;
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user