Skip to content

Commit

Permalink
chore: update Dockerfile
Browse files Browse the repository at this point in the history
Replace razonyang/hugo with hugomods/hugo
  • Loading branch information
razonyang authored May 7, 2023
1 parent 8fb9ea6 commit 439b759
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
# Build stage
FROM razonyang/hugo as builder
FROM hugomods/hugo as builder

## Build site
WORKDIR /src
COPY . /src
ARG HUGO_BASEURL=/
ARG HUGO_BASEURL=
ENV HUGO_BASEURL=${HUGO_BASEURL}
WORKDIR /src/exampleSite
RUN npm install
Expand All @@ -13,6 +12,5 @@ RUN hugo version
RUN hugo -b ${HUGO_BASEURL}

# Final stage
FROM nginx
COPY --from=builder /src/exampleSite/public /app
COPY ./docker/nginx/nginx.conf /etc/nginx/conf.d/default.conf
FROM hugomods/hugo:nginx
COPY --from=builder /src/exampleSite/public /site

0 comments on commit 439b759

Please sign in to comment.