Skip to content

Commit

Permalink
Add a Dockerfile and update BAPC21-theme submodule (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
Siarl authored Feb 16, 2024
1 parent 01ac8e9 commit 1f0ac9d
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Dockerfile
.github

21 changes: 21 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@


FROM alpine:latest

ARG HUGO_VERSION=0.68.3

RUN apk add git

WORKDIR /tmp
RUN wget https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_${HUGO_VERSION}_Linux-64bit.tar.gz -O hugo.tar.gz \
&& tar -xzf hugo.tar.gz \
&& cp hugo /opt/hugo \
&& rm -rf /tmp/*

WORKDIR /usr/src/app
COPY . .
RUN git submodule init && git submodule update --remote --merge

EXPOSE 1313
CMD [ "/opt/hugo", "server", "--bind=0.0.0.0" ]

0 comments on commit 1f0ac9d

Please sign in to comment.