docker fixes
This commit is contained in:
parent
5abd08bb5a
commit
64b0a96b4f
2 changed files with 4 additions and 6 deletions
|
@ -4,11 +4,8 @@ FROM klakegg/hugo:0.83.1-ext-alpine
|
||||||
# Set working directory
|
# Set working directory
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
# Copy the site files
|
# Install git for the pull operation
|
||||||
COPY . /app
|
RUN apk add --no-cache git
|
||||||
|
|
||||||
# Build the static site
|
|
||||||
RUN hugo
|
|
||||||
|
|
||||||
# Serve the site
|
# Serve the site
|
||||||
CMD ["hugo", "server", "--bind", "0.0.0.0"]
|
CMD ["hugo", "server", "--bind", "0.0.0.0", "--disableFastRender", "--watch", "--source", "/app"]
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
services:
|
services:
|
||||||
blog-pika:
|
blog-pika:
|
||||||
|
restart: unless-stopped
|
||||||
build: .
|
build: .
|
||||||
ports:
|
ports:
|
||||||
- "1313:1313"
|
- "1313:1313"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue