added dockerfile
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1 +1,2 @@
|
|||||||
resources/_gen/
|
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
|
||||||
Reference in New Issue
Block a user