Skip to content

Commit

Permalink
Change workdir for hugo build step
Browse files Browse the repository at this point in the history
  • Loading branch information
scottcha committed Nov 22, 2023
1 parent b20e4dc commit 0e29596
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Blog/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ RUN apt-get update && \
rm -r hugo_extended_0.120.4_Linux-64bit.tar.gz

# Copy your Hugo site source into the Docker container
COPY ./ /src
COPY . /src

# Set the working directory
WORKDIR /src
Expand All @@ -20,8 +20,10 @@ WORKDIR /src
RUN git init && \
git submodule update --init --recursive

WORKDIR /src/Blog

# Build your Hugo site
RUN hugo --minify --config /src/Blog/hugo.toml
RUN hugo --minify --config hugo.toml

# Use an Apache HTTP Server Docker image to serve your Hugo site
FROM httpd:2.4-alpine
Expand Down

0 comments on commit 0e29596

Please sign in to comment.