try same OS for build/run images, per feedback #2

Manually merged
sneak merged 5 commits from sneak/fixdocker into master 2020-10-03 02:20:30 +00:00
Showing only changes of commit 49b2074341 - Show all commits

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