From 64b0a96b4f8125803f3bc179cbb0724c6f9471a3531b72f7ff6a97925a0b2cd4 Mon Sep 17 00:00:00 2001 From: pika Date: Thu, 20 Jun 2024 22:20:20 +0200 Subject: [PATCH] docker fixes --- Dockerfile | 9 +++------ docker-compose.yml | 1 + 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 798dde4..166d7d5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"] diff --git a/docker-compose.yml b/docker-compose.yml index f069a20..918d88d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,5 +1,6 @@ services: blog-pika: + restart: unless-stopped build: . ports: - "1313:1313"