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"