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'