all repos — legit @ 49d832319fe59070b4607f149bbd62ce0fa3b8e2

web frontend for git, written in go

contrib: update Dockerfile
Marco Andronaco andronacomarco@gmail.com
Wed, 02 Oct 2024 12:08:03 +0200
commit

49d832319fe59070b4607f149bbd62ce0fa3b8e2

parent

fba146ac6867b13c40802c4d7a21a8a32571473c

1 files changed, 4 insertions(+), 7 deletions(-)

jump to
M contrib/Dockerfilecontrib/Dockerfile

@@ -1,16 +1,14 @@

-FROM golang:1.19-alpine AS builder +FROM golang:1.22-alpine AS builder WORKDIR /app -COPY . ./ - -RUN apk add gcc musl-dev libc-dev - +COPY . . RUN go mod download RUN go mod verify + RUN go build -o legit -FROM alpine:latest +FROM scratch AS build-release-stage WORKDIR /app

@@ -22,4 +20,3 @@

EXPOSE 5555 CMD ["./legit"] -