add Dockerfile and nginx configuration
This commit is contained in:
parent
45c7886090
commit
8f2d6b1613
8
frontend/Dockerfile
Normal file
8
frontend/Dockerfile
Normal file
@ -0,0 +1,8 @@
|
||||
FROM nginx:stable-alpine
|
||||
|
||||
COPY ./conf/nginx.conf /etc/nginx/nginx.conf
|
||||
|
||||
WORKDIR /app
|
||||
COPY ./src/. .
|
||||
|
||||
EXPOSE 8000
|
22
frontend/conf/nginx.conf
Normal file
22
frontend/conf/nginx.conf
Normal file
@ -0,0 +1,22 @@
|
||||
events {
|
||||
worker_connections 1024;
|
||||
}
|
||||
|
||||
http {
|
||||
server {
|
||||
listen 8000 default_server;
|
||||
listen [::]:8000 default_server;
|
||||
|
||||
root /app;
|
||||
index index.html;
|
||||
server_name _;
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ =404;
|
||||
}
|
||||
|
||||
location /api/ {
|
||||
proxy_pass http://backend:8000/;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user