Skip to content

Commit

Permalink
chore: Show drafts when running locally
Browse files Browse the repository at this point in the history
  • Loading branch information
christianfosli committed Mar 31, 2024
1 parent a101d83 commit 172d5a9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
FROM ghcr.io/getzola/zola:v0.18.0 as zola
ARG BASE_URL="https://www.christianfosli.com"
ARG DRAFTS="0"

COPY . /project
COPY --from=busybox:1-uclibc /bin/sh /bin/
WORKDIR /project
RUN zola build --base-url $BASE_URL
RUN zola build --base-url $BASE_URL $([ "$DRAFTS" = 1 ] && echo "--drafts" || echo "")

FROM ghcr.io/static-web-server/static-web-server:2
WORKDIR /
Expand Down
1 change: 1 addition & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ services:
context: .
args:
BASE_URL: "http://localhost:8000"
DRAFTS: "1"
ports:
- "8000:80"

0 comments on commit 172d5a9

Please sign in to comment.