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.
Updating Dockerfile based on feedback
- Loading branch information
Showing
1 changed file
with
1 addition
and
10 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,7 +18,6 @@ ENV GOPATH=$APP_ROOT | |
|
||
WORKDIR $APP_ROOT/src/ | ||
ADD go.mod go.sum $APP_ROOT/src/ | ||
RUN go mod download | ||
|
||
# Add source code | ||
ADD ./cmd/ $APP_ROOT/src/cmd/ | ||
|
@@ -36,12 +35,4 @@ FROM brew.registry.redhat.io/rh-osbs/openshift-golang-builder:rhel_9_1.21 as dep | |
COPY --from=builder /opt/app-root/src/timestamp-server /usr/local/bin/timestamp-server | ||
|
||
# Set the binary as the entrypoint of the container | ||
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] | ||
|
||
# overwrite server and include debugger | ||
COPY --from=builder /opt/app-root/src/timestamp-server_debug /usr/local/bin/timestamp-server | ||
CMD ["timestamp-server", "serve"] |