mirror of
https://git.mills.io/prologic/zs
synced 2025-02-06 15:19:22 +03:00
19 lines
276 B
Docker
19 lines
276 B
Docker
# Build
|
|
FROM prologic/zs AS build
|
|
|
|
RUN mkdir -p /src
|
|
|
|
WORKDIR /src
|
|
|
|
# Copy content
|
|
COPY . .
|
|
|
|
# Build the site (in production mode)
|
|
RUN zs -D -p build > build.log 2>&1
|
|
|
|
# Runtime
|
|
FROM prologic/zs AS runtime
|
|
|
|
COPY --from=build /src/.pub /data
|
|
COPY --from=build /src/build.log /
|