Build improvements
Some checks failed
the build failed

This commit is contained in:
Peter Stuifzand 2019-03-12 22:53:12 +01:00
parent 7617f47ba0
commit dfc81ca969
2 changed files with 6 additions and 4 deletions

View File

@ -9,4 +9,4 @@ pipeline:
commands: commands:
- go get ./... - go get ./...
- go test - go test
- go build - CC=/usr/bin/musl-gcc go build --ldflags '-linkmode external -extldflags "-static"'

View File

@ -1,6 +1,8 @@
FROM alpine FROM alpine
EXPOSE 80 RUN addgroup -S app && adduser -S -G app app
RUN ["mkdir", "/data"] RUN apk add --update ca-certificates
WORKDIR /data WORKDIR /data
RUN ["chown", "app:app", "/data"]
COPY track-me /app/ COPY track-me /app/
ENTRYPOINT ["/app/track-me"] USER app
CMD ["/app/track-me"]