docker fixes

This commit is contained in:
pika 2024-06-20 22:20:20 +02:00
parent 5abd08bb5a
commit 64b0a96b4f
2 changed files with 4 additions and 6 deletions

View file

@ -4,11 +4,8 @@ FROM klakegg/hugo:0.83.1-ext-alpine
# Set working directory
WORKDIR /app
# Copy the site files
COPY . /app
# Build the static site
RUN hugo
# Install git for the pull operation
RUN apk add --no-cache git
# Serve the site
CMD ["hugo", "server", "--bind", "0.0.0.0"]
CMD ["hugo", "server", "--bind", "0.0.0.0", "--disableFastRender", "--watch", "--source", "/app"]

View file

@ -1,5 +1,6 @@
services:
blog-pika:
restart: unless-stopped
build: .
ports:
- "1313:1313"