Files
yosoy/Dockerfile
dependabot[bot] aebc6051a1 Bump alpine from 3.18 to 3.19
Bumps alpine from 3.18 to 3.19.

---
updated-dependencies:
- dependency-name: alpine
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-08 17:35:34 +00:00

20 lines
352 B
Docker

FROM golang:1.21-alpine as builder
LABEL maintainer="Łukasz Budnik lukasz.budnik@gmail.com"
# install prerequisites
RUN apk update && apk add git
# build yosoy
ADD . /go/yosoy
RUN go env -w GOPROXY=direct
RUN cd /go/yosoy && go build
FROM alpine:3.19
COPY --from=builder /go/yosoy/yosoy /bin
# register entrypoint
ENTRYPOINT ["yosoy"]
EXPOSE 80