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
  • Loading branch information
scottcha committed Nov 22, 2023
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
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 ./Blog /src
COPY ./ /src

# Set the working directory
WORKDIR /src
Expand All @@ -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.