added dockerfile
This commit is contained in:
parent
dcd2cdcd9e
commit
8502b6e954
1
.gitignore
vendored
1
.gitignore
vendored
@ -1 +1,2 @@
|
||||
resources/_gen/
|
||||
public
|
13
Dockerfile
Normal file
13
Dockerfile
Normal file
@ -0,0 +1,13 @@
|
||||
FROM alpine as build
|
||||
RUN apk --no-cache add bash hugo
|
||||
COPY ./ /src
|
||||
WORKDIR /src
|
||||
RUN /usr/bin/hugo
|
||||
|
||||
FROM nginx:alpine
|
||||
|
||||
#COPY ./conf/default.conf /etc/nginx/conf.d/default.conf
|
||||
|
||||
COPY --from=build /src/public /usr/share/nginx/html
|
||||
|
||||
WORKDIR /usr/share/nginx/html
|
Loading…
Reference in New Issue
Block a user