zs-starter-template/Dockerfile

26 lines
309 B
Docker
Raw Normal View History

# 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
2023-03-12 10:44:34 +03:00
RUN zs build
# Runtime
FROM prologic/static AS runtime
COPY --from=build /src/.pub /data