24 lines
589 B
Docker
24 lines
589 B
Docker
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
|
|
|
|
FROM $REGISTRY_SIMPLE_SYSTEMS/simplesystems/static-web-server:609f2b47
|
|
|
|
WORKDIR /app
|
|
|
|
# Copy over static website files
|
|
COPY --from=build-website /src/public /app/public
|
|
|
|
ENTRYPOINT ["./static-web-server", "-rootDir", "public", "-port", "80"]
|