diff --git a/backend/Dockerfile b/backend/Dockerfile index 350ec34..32334f6 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -1,13 +1,15 @@ FROM golang:1.25.3 AS build +ENV GIN_MODE=release +ENV PORT=4320 WORKDIR /app COPY go.mod go.sum ./ RUN go mod download COPY . . -RUN GOOS=linux GOARCH=amd64 GOAMD64=v1 go build -pgo=auto -ldflags="-s -w" -o bin/esign-server main.go +RUN GOOS=linux GOARCH=amd64 GOAMD64=v1 go build -pgo=auto -ldflags="-s -w" -o /bin/esign-server main.go FROM alpine:latest WORKDIR /app -COPY --from=build /app/bin/esign-server . -EXPOSE 4320 -CMD ["./esign-server"] \ No newline at end of file +COPY --from=build /bin/esign-server ./server +EXPOSE $PORT +CMD ["./server"] \ No newline at end of file diff --git a/index.html b/index.html index 48829a6..2bf4428 100644 --- a/index.html +++ b/index.html @@ -8,7 +8,8 @@ - + +