mirror of
https://git.mills.io/prologic/zs-starter-template.git
synced 2026-10-08 03:31:35 -07:00
Fix missing minify dependency and docker image
This commit is contained in:
+10
-2
@@ -1,10 +1,18 @@
|
||||
# Build
|
||||
FROM prologic/zs AS 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 . .
|
||||
|
||||
@@ -12,6 +20,6 @@ COPY . .
|
||||
RUN zs build
|
||||
|
||||
# Runtime
|
||||
FROM prologic/zs AS runtime
|
||||
FROM prologic/static AS runtime
|
||||
|
||||
COPY --from=build /src/.pub /data
|
||||
|
||||
Reference in New Issue
Block a user