added nginx config and rewrote Dockerfile and gitlab ci
This commit is contained in:
+5
-6
@@ -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;"]
|
||||
|
||||
Reference in New Issue
Block a user