Added basic dockerfile for webserver

This commit is contained in:
2023-09-21 19:16:43 -07:00
parent fb22243104
commit bcef2c7403
2 changed files with 45 additions and 0 deletions

14
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;"]