Moved server files to /server

This commit is contained in:
2023-09-22 10:08:10 -07:00
parent 32463ad6aa
commit ef74b67f90
16 changed files with 21 additions and 5 deletions

14
server/Dockerfile Normal file
View File

@ -0,0 +1,14 @@
FROM ubuntu AS node
RUN apt-get update
RUN apt-get install cargo npm -y
COPY ./site ./site
RUN cd /site && npm install
FROM ubuntu
RUN apt-get update
RUN apt-get install nginx -y
COPY --from=node /site /var/www/html
COPY ./pkg /var/www/html/pkg
COPY default /etc/nginx/sites-enabled/default
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]