forked from Kieran/snort
1
0
Fork 0

fix: docker nginx config

This commit is contained in:
Kieran 2023-02-12 19:10:10 +00:00
parent b0d5612b90
commit 39292802f8
Signed by: Kieran
GPG Key ID: DE71CEB3925BE941
2 changed files with 12 additions and 1 deletions

View File

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