From f763f57001e69de49bd28724b24cb38e60198f99 Mon Sep 17 00:00:00 2001 From: vx-clutch Date: Fri, 2 Jan 2026 10:06:27 -0500 Subject: [PATCH] rewrite Dockerfile --- Dockerfile | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9a499a8..9ec07ab 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,24 +4,17 @@ WORKDIR /src RUN apk add --no-cache git build-base -COPY go.mod go.sum ./ -RUN go mod download - COPY . . -ENV CGO_ENABLED=0 -ENV GOOS=linux -ENV GOARCH=amd64 +RUN make -RUN go build -ldflags="-X fes/modules/version.gitCommit=$(git rev-parse --short HEAD) -s -w" -o fes +FROM alpine:3.19 -FROM scratch - -COPY --from=builder /src/fes /fes +COPY --from=builder /src/fes /usr/local/bin/fes WORKDIR /app -EXPOSE 8080 +EXPOSE 3000 -ENTRYPOINT ["/fes"] +ENTRYPOINT ["/usr/local/bin/fes"] CMD ["run", "/app"]