try same OS for build/run images, per feedback
continuous-integration/drone/push Build is failing Details
continuous-integration/drone/pr Build is failing Details

https://lobste.rs/s/dzaeid/go_http_server_project_template#c_vs0btd
This commit is contained in:
Jeffrey Paul 2020-09-30 22:12:41 -07:00
parent de9fae295d
commit 49b2074341
1 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@ RUN golangci-lint run
## build image:
#ARG GO_VERSION=1.15
FROM golang:1.15-alpine AS builder
FROM golang:1.15-buster AS builder
RUN mkdir /user && \
echo 'nobody:x:65534:65534:nobody:/:' > /user/passwd && \
@ -32,7 +32,7 @@ RUN go mod vendor
RUN tar -c . | bzip2 > /src.tbz2
## output image:
FROM ubuntu:focal AS final
FROM debian:buster-slim AS final
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY --from=builder /build/httpd /app/httpd
COPY --from=builder /src.tbz2 /usr/local/src/src.tbz2