add Dockerfile
This commit is contained in:
parent
99d17024d1
commit
9cdf606b6f
9
Dockerfile
Normal file
9
Dockerfile
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
FROM golang:alpine3.18
|
||||||
|
ARG VERSION=v1.0.0
|
||||||
|
RUN apk --update --no-cache add git upx
|
||||||
|
WORKDIR /go/src
|
||||||
|
COPY . .
|
||||||
|
RUN set -eux; \
|
||||||
|
go env -w GOPRIVATE=code.simaek.com ; \
|
||||||
|
go build -ldflags="-s -w"; \
|
||||||
|
upx -9 markdown-renderer;
|
Loading…
Reference in New Issue
Block a user