From d16f1cf90a9166478d76d11ba0e689912091835b Mon Sep 17 00:00:00 2001 From: Scott Hatlen Date: Sun, 31 Jul 2022 18:30:38 -0700 Subject: [PATCH] removed base-url so css shows in nginx --- Dockerfile | 15 +++++++++------ hugo-content/config.toml | 1 - 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4a5c8fd..7c64388 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,11 @@ -FROM alpine:latest - -RUN apk add --no-cache git hugo +FROM alpine:latest as build_stage +WORKDIR /opt +RUN apk add git hugo RUN git clone https://github.com/scottyah/scottyah-blog.git -WORKDIR scottyah-blog/hugo-content +WORKDIR /opt/scottyah-blog/hugo-content +RUN hugo -EXPOSE 1313:1313 -CMD ["hugo", "server", "--bind", "0.0.0.0", "-D"] +FROM nginx:latest as server_stage +COPY --from=build_stage /opt/scottyah-blog/hugo-content/public/ /usr/share/nginx/html +EXPOSE 80 +CMD ["nginx"] \ No newline at end of file diff --git a/hugo-content/config.toml b/hugo-content/config.toml index b769291..3563211 100644 --- a/hugo-content/config.toml +++ b/hugo-content/config.toml @@ -1,4 +1,3 @@ -baseURL = 'http://scottyah.com/' languageCode = 'en-us' title = 'Scottyah Bloggins' theme = 'cactus'