diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..35cf0b5 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,7 @@ +FROM nginx:alpine + +WORKDIR /app + +COPY ./dist/* /usr/share/nginx/html + +EXPOSE 3000 diff --git a/default.conf.template b/default.conf.template new file mode 100644 index 0000000..41d3828 --- /dev/null +++ b/default.conf.template @@ -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}; + } +} \ No newline at end of file diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 0000000..e69de29