diff --git a/Dockerfile b/Dockerfile index 34cabd8..3963818 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,14 +1,10 @@ -FROM golang:latest as builder-base +FROM golang:alpine as builder-base WORKDIR /app COPY go.mod /app/go.mod COPY go.sum /app/go.sum RUN go mod download COPY . /app -RUN CGO_ENABLED=0 go build -o ezshare cmd/ezshare.go - -FROM builder-base as certs -VOLUME ["/data"] -CMD ["/app/scripts/gencerts.sh"] +RUN go build -o ezshare cmd/ezshare.go FROM builder-base as cross-compiler VOLUME ["/data"]