feat: add nginx conf

This commit is contained in:
kieran 2024-11-26 19:17:48 +00:00
parent 8ee0748740
commit e4f6863e21
No known key found for this signature in database
GPG Key ID: DE71CEB3925BE941
2 changed files with 12 additions and 1 deletions

View File

@ -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
View 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;
}
}