forked from sigstore/timestamp-authority
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
4 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
||
|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|