Skip to content

Commit

Permalink
Update Dockerfile to troubleshoot production build
Browse files Browse the repository at this point in the history
  • Loading branch information
VWJF committed Jan 21, 2025
1 parent 66647a7 commit ae2b6a9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ FROM alpine:latest AS build
# ARG HUGO_BASEURL="http://localhost"
ENV HUGO_BASEURL=${HUGO_BASEURL}

# Install the Hugo go app.
# Install the Hugo go app and git.
RUN apk add --update hugo git

WORKDIR /opt/HugoApp
Expand All @@ -18,7 +18,8 @@ RUN hugo \
--gc \
--buildDrafts \
--minify \
--baseURL "${HUGO_BASEURL}/"
--baseURL "${HUGO_BASEURL}/" \
--logLevel info

# Remove git artifacts
RUN rm -rf .git
Expand Down

0 comments on commit ae2b6a9

Please sign in to comment.