added nginx config and rewrote Dockerfile and gitlab ci

This commit is contained in:
AHMZA
2021-12-08 22:25:02 +00:00
parent 864a1058d8
commit b9d64b7728
3 changed files with 52 additions and 13 deletions
+5 -6
View File
@@ -1,6 +1,5 @@
FROM alpine:latest
RUN which curl || ( apk update && apk add curl )
RUN curl -L https://github.com/gohugoio/hugo/releases/download/v0.90.0/hugo_0.90.0_Linux-64bit.tar.gz > hugo.tar.gz
RUN tar -zxf hugo.tar.gz
RUN mv hugo /usr/local/bin/hugo
CMD hugo
FROM nginx:alpine
COPY .build /var/www
COPY nginx.conf /etc/nginx/nginx.conf
EXPOSE 80
ENTRYPOINT ["nginx","-g","daemon off;"]