markdown-renderer/Dockerfile

9 lines
229 B
Docker
Raw Permalink Normal View History

2023-06-18 10:48:25 +00:00
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;