mirror of
https://git.mills.io/prologic/zs-starter-template.git
synced 2024-11-21 12:56:04 +03:00
26 lines
309 B
Docker
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
|