Compare commits

...

6 Commits

Author SHA1 Message Date
9a68d795b2 Merge branch 'sneak/fixdocker' of sneak/gohttpserver into master
All checks were successful
continuous-integration/drone/push Build is passing
2020-10-03 02:20:30 +00:00
6d9095b12d don't try to tag the image, just build it
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build is passing
2020-10-01 00:48:30 -07:00
93f2bfef4d should work now
Some checks failed
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is failing
2020-09-30 23:04:47 -07:00
8f3b972ca6 Merge branch 'master' into sneak/fixdocker
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build is failing
2020-09-30 22:33:02 -07:00
db049e3b67 fixes
Some checks failed
continuous-integration/drone/pr Build is failing
continuous-integration/drone/push Build is failing
2020-09-30 22:24:52 -07:00
49b2074341 try same OS for build/run images, per feedback
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build is failing
https://lobste.rs/s/dzaeid/go_http_server_project_template#c_vs0btd
2020-09-30 22:12:41 -07:00
2 changed files with 4 additions and 9 deletions

View File

@ -7,6 +7,7 @@ steps:
settings:
repo: foo/bar
dry_run: true
target: final
tags:
- ${DRONE_COMMIT_SHA}
- ${DRONE_BRANCH}

View File

@ -7,15 +7,9 @@ COPY ./ ./
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 && \
echo 'nobody:x:65534:' > /user/group
RUN apk add --no-cache ca-certificates git bzip2 make gcc libc-dev
#RUN GO111MODULE=on go get github.com/golangci/golangci-lint/cmd/golangci-lint@v1.31.0
RUN apt update && apt install -y make bzip2
RUN mkdir -p /build
WORKDIR /build
@ -32,7 +26,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