removed base-url so css shows in nginx
This commit is contained in:
15
Dockerfile
15
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"]
|
||||
@@ -1,4 +1,3 @@
|
||||
baseURL = 'http://scottyah.com/'
|
||||
languageCode = 'en-us'
|
||||
title = 'Scottyah Bloggins'
|
||||
theme = 'cactus'
|
||||
|
||||
Reference in New Issue
Block a user