Try deploy
This commit is contained in:
parent
5782cb64d8
commit
da7aa10627
4 changed files with 97 additions and 1 deletions
21
docker/Dockerfile
Normal file
21
docker/Dockerfile
Normal file
|
@ -0,0 +1,21 @@
|
|||
ARG NGINX_VERSION=
|
||||
|
||||
#####################################################################
|
||||
# Build Stage #
|
||||
#####################################################################
|
||||
FROM docker.io/hugomods/hugo:exts as builder
|
||||
|
||||
COPY . /src
|
||||
|
||||
RUN hugo --minify --enableGitInfo
|
||||
|
||||
#####################################################################
|
||||
# Final Stage #
|
||||
#####################################################################
|
||||
FROM docker.io/nginx:${NGINX_VERSION}-alpine-slim as runner
|
||||
|
||||
COPY docker/nginx/conf.d/default.conf /etc/nginx/conf.d/default.conf
|
||||
|
||||
COPY --from=builder /src/public /site
|
||||
|
||||
EXPOSE 8080
|
Loading…
Add table
Add a link
Reference in a new issue