mirror of
https://github.com/rm-dr/daisy
synced 2025-07-01 06:33:34 -07:00
Added basic dockerfile for webserver
This commit is contained in:
14
Dockerfile
Normal file
14
Dockerfile
Normal 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;"]
|
Reference in New Issue
Block a user