mirror of
https://git.mills.io/prologic/zs-starter-template.git
synced 2024-11-21 12:56:04 +03: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
|
# Build
|
||||||
FROM prologic/zs AS build
|
FROM golang:alpine AS build
|
||||||
|
|
||||||
|
RUN apk add --no-cache -U build-base git
|
||||||
|
|
||||||
RUN mkdir -p /src
|
RUN mkdir -p /src
|
||||||
|
|
||||||
WORKDIR /src
|
WORKDIR /src
|
||||||
|
|
||||||
|
# Copy Makefile
|
||||||
|
COPY Makefile ./
|
||||||
|
|
||||||
|
# Install deps
|
||||||
|
RUN make deps
|
||||||
|
|
||||||
# Copy content
|
# Copy content
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
@ -12,6 +20,6 @@ COPY . .
|
|||||||
RUN zs build
|
RUN zs build
|
||||||
|
|
||||||
# Runtime
|
# Runtime
|
||||||
FROM prologic/zs AS runtime
|
FROM prologic/static AS runtime
|
||||||
|
|
||||||
COPY --from=build /src/.pub /data
|
COPY --from=build /src/.pub /data
|
||||||
|
Loading…
Reference in New Issue
Block a user