mirror of
https://github.com/saltbo/zpan.git
synced 2026-11-04 07:03:14 +08:00
24 lines
367 B
Docker
24 lines
367 B
Docker
FROM golang:1.14 AS builder
|
|
|
|
ENV APP_HOME /src
|
|
WORKDIR $APP_HOME
|
|
|
|
COPY go.* $APP_HOME/
|
|
ENV GOPROXY https://goproxy.cn,direct
|
|
RUN go mod download
|
|
|
|
COPY . .
|
|
RUN make build
|
|
|
|
|
|
# Runing environment
|
|
FROM moreu:latest
|
|
|
|
ENV APP_HOME /zpan
|
|
WORKDIR $APP_HOME
|
|
|
|
COPY deployments/ .
|
|
COPY --from=builder /src/build/bin/zpan .
|
|
|
|
ENTRYPOINT ["./entrypoint.sh"]
|
|
CMD ["moreu", "server"] |