feat🔫: docker镜像 & nginx
This commit is contained in:
parent
16ab0e1d38
commit
6fdee6a3b1
7
Dockerfile
Normal file
7
Dockerfile
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
FROM nginx:alpine
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
COPY ./dist/* /usr/share/nginx/html
|
||||||
|
|
||||||
|
EXPOSE 3000
|
13
default.conf.template
Normal file
13
default.conf.template
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
server {
|
||||||
|
listen ${NGINX_PORT};
|
||||||
|
server_name ${NGINX_HOST}
|
||||||
|
|
||||||
|
location / {
|
||||||
|
root /usr/share/nginx/html;
|
||||||
|
index index.html index.htm;
|
||||||
|
try_files $uri /index.html =404;
|
||||||
|
}
|
||||||
|
location /api {
|
||||||
|
proxy_pass ${NGINX_API_PROXY};
|
||||||
|
}
|
||||||
|
}
|
0
docker-compose.yaml
Normal file
0
docker-compose.yaml
Normal file
Loading…
Reference in New Issue
Block a user