From scratch docker image

This commit is contained in:
Steven Polley 2018-12-23 01:48:14 -07:00
parent d8f00ba2a6
commit dd9b05bc00
3 changed files with 3413 additions and 6 deletions

View File

@ -16,7 +16,7 @@ steps:
commands:
- go version
- go get
- go build -ldflags '-w'
- go build -a -ldflags '-w'
- name: publish
image: plugins/docker
settings:

View File

@ -1,6 +1,5 @@
FROM alpine:latest
RUN apk update && apk add ca-certificates && rm -rf /var/cache/apk/*
WORKDIR /opt/deadbeef
COPY mandelmapper .
FROM scratch
COPY mandelmapper /
COPY ca-certificates.crt /etc/ssl/certs/
EXPOSE 6161:6161
ENTRYPOINT ["/opt/deadbeef/mandelmapper"]
ENTRYPOINT ["/mandelmapper"]

3408
ca-certificates.crt Normal file

File diff suppressed because it is too large Load Diff