feat🔫: docker镜像 & nginx

This commit is contained in:
clz 2022-09-06 01:05:20 +08:00
parent 16ab0e1d38
commit 6fdee6a3b1
3 changed files with 20 additions and 0 deletions

7
Dockerfile Normal file
View File

@ -0,0 +1,7 @@
FROM nginx:alpine
WORKDIR /app
COPY ./dist/* /usr/share/nginx/html
EXPOSE 3000

13
default.conf.template Normal file
View 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
View File