fix: docker nginx config
This commit is contained in:
parent
b0d5612b90
commit
39292802f8
@ -5,5 +5,6 @@ RUN yarn install --network-timeout 1000000
|
||||
COPY . .
|
||||
RUN yarn build
|
||||
|
||||
FROM nginx
|
||||
FROM nginx:mainline-alpine
|
||||
COPY docker/nginx.conf /etc/nginx/conf.d/default.conf
|
||||
COPY --from=build /app/build /usr/share/nginx/html
|
10
docker/nginx.conf
Normal file
10
docker/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