Updated index.html

This commit is contained in:
Patrick Alvin Alcala 2025-10-30 16:27:16 +08:00
parent a45169d328
commit d68d9699bf
2 changed files with 8 additions and 5 deletions

View file

@ -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"]
COPY --from=build /bin/esign-server ./server
EXPOSE $PORT
CMD ["./server"]