diff --git a/Dockerfile b/Dockerfile index c6305ea0..2e551dd2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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/dlv@v1.9.0 - -# overwrite server and include debugger -COPY --from=builder /opt/app-root/src/timestamp-server_debug /usr/local/bin/timestamp-server +CMD ["timestamp-server", "serve"] \ No newline at end of file