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
|
||||
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"]
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
services:
|
||||
blog-pika:
|
||||
restart: unless-stopped
|
||||
build: .
|
||||
ports:
|
||||
- "1313:1313"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue