zs-starter-template/Dockerfile
2023-03-16 18:37:41 +10:00

26 lines
309 B
Docker

# Build
FROM golang:alpine AS build
RUN apk add --no-cache -U build-base git
RUN mkdir -p /src
WORKDIR /src
# Copy Makefile
COPY Makefile ./
# Install deps
RUN make deps
# Copy content
COPY . .
# Build the site
RUN zs build
# Runtime
FROM prologic/static AS runtime
COPY --from=build /src/.pub /data