removed base-url so css shows in nginx

This commit is contained in:
2022-07-31 18:30:38 -07:00
parent 2ad7547b37
commit d16f1cf90a
2 changed files with 9 additions and 7 deletions

View File

@@ -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"]