Skip to content
Snippets Groups Projects
Unverified Commit 5ae738c2 authored by dlorenc's avatar dlorenc Committed by GitHub
Browse files

Merge pull request #39 from bobcallaway/fix_docker_compose

fix docker-compose to actually build server and work
parents 8f484494 9c5f60cc
No related branches found
No related tags found
No related merge requests found
.idea/*
.vscode/*
cli
logid
rekor-cli
rekor-server
server
FROM golang:alpine AS builder
FROM registry.access.redhat.com/ubi8/go-toolset AS builder
ENV GOPATH=$APP_ROOT
WORKDIR /go/src/github.com/projectrekor/rekor-server/
ADD go.mod go.sum /go/src/github.com/projectrekor/rekor-server/
WORKDIR $APP_ROOT/src/
ADD go.mod go.sum $APP_ROOT/src/
RUN go mod download
# Add source code
ADD ./ /go/src/github.com/projectrekor/rekor-server/
ADD ./ $APP_ROOT/src/
RUN go build && \
mv ./rekor-server /usr/bin/rekor-server
RUN go build ./cmd/server
# Multi-Stage production build
FROM alpine
RUN apk add --update ca-certificates
FROM registry.access.redhat.com/ubi8/ubi-minimal
# Retrieve the binary from the previous stage
COPY --from=builder /usr/bin/rekor-server /usr/local/bin/rekor-server
COPY --from=builder /opt/app-root/src/server /usr/local/bin/rekor-server
# Set the binary as the entrypoint of the container
CMD ["rekor-server", "serve"]
\ No newline at end of file
CMD ["rekor-server", "serve"]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment