Skip to content

Commit

Permalink
Updated go.mod and Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
tommyd450 committed Nov 30, 2023
1 parent dc5a95b commit ece726d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ ENV GOPATH=$APP_ROOT

WORKDIR $APP_ROOT/src/
ADD go.mod go.sum $APP_ROOT/src/
RUN go mod download
#RUN go mod download

# Add source code
ADD ./cmd/ $APP_ROOT/src/cmd/
ADD ./pkg/ $APP_ROOT/src/pkg/

ARG SERVER_LDFLAGS
RUN go mod vendor
#RUN go mod vendor
RUN go build -ldflags "${SERVER_LDFLAGS}" ./cmd/timestamp-server
RUN CGO_ENABLED=0 go build -gcflags "all=-N -l" -ldflags "${SERVER_LDFLAGS}" -o timestamp-server_debug ./cmd/timestamp-server

Expand All @@ -41,7 +41,7 @@ CMD ["timestamp-server", "serve"]
# debug compile options & debugger
FROM deploy as debug

RUN go install -mod=mod github.com/go-delve/delve/cmd/[email protected]
RUN go install github.com/go-delve/delve/cmd/[email protected]

# overwrite server and include debugger
COPY --from=builder /opt/app-root/src/timestamp-server_debug /usr/local/bin/timestamp-server
1 change: 1 addition & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ module github.com/sigstore/timestamp-authority
go 1.21

require (
github.com/go-delve/delve/cmd/[email protected]
cloud.google.com/go/security v1.15.1
github.com/beevik/ntp v1.3.0
github.com/digitorus/pkcs7 v0.0.0-20230818184609-3a137a874352
Expand Down

0 comments on commit ece726d

Please sign in to comment.