Skip to content

Commit

Permalink
Update dockerfile so that submodule blog theme can be installed
Browse files Browse the repository at this point in the history
scottcha committed Nov 22, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent bca2359 commit b20e4dc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Blog/Dockerfile
Original file line number Diff line number Diff line change
@@ -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 ./Blog /src
COPY ./ /src

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

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

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

# Copy the built Hugo site from the builder container to the Apache HTTP Server container
COPY --from=builder /src/public/ /usr/local/apache2/htdocs/
COPY --from=builder /src/Blog/public/ /usr/local/apache2/htdocs/

0 comments on commit b20e4dc

Please sign in to comment.