added dockerfile

This commit is contained in:
richmans 2022-04-02 22:34:23 +02:00
parent dcd2cdcd9e
commit 8502b6e954
2 changed files with 14 additions and 0 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
resources/_gen/
public

13
Dockerfile Normal file
View 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