website/Dockerfile

24 lines
589 B
Docker
Raw Normal View History

2024-06-04 07:49:35 +00:00
ARG REGISTRY_DOCKER_HUB
ARG REGISTRY_SIMPLE_SYSTEMS
FROM $REGISTRY_DOCKER_HUB/alpine:latest AS build-website
WORKDIR /src
COPY . /src/
# Get hugo -- using the edge branch to get latest version
RUN sed -i -e 's/v[[:digit:]]\..*\//edge\//g' /etc/apk/repositories
RUN apk update && apk upgrade && \
apk add --no-cache hugo
RUN hugo --minify
2024-06-04 07:49:35 +00:00
FROM $REGISTRY_SIMPLE_SYSTEMS/simplesystems/static-web-server:609f2b47
WORKDIR /app
# Copy over static website files
COPY --from=build-website /src/public /app/public
2022-03-14 03:50:51 +00:00
ENTRYPOINT ["./static-web-server", "-rootDir", "public", "-port", "80"]