mirror of
https://git.mills.io/prologic/zs-starter-template.git
synced 2024-11-15 16:56:00 -05:00
Fix missing minify dependency and docker image
This commit is contained in:
parent
b79191b678
commit
4aab1832b5
12
Dockerfile
12
Dockerfile
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user