Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
rekor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SafSec
rekor
Commits
9c5f60cc
Commit
9c5f60cc
authored
4 years ago
by
Bob Callaway
Browse files
Options
Downloads
Patches
Plain Diff
fix docker-compose to actually build server and work
parent
8f484494
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitignore
+2
-0
2 additions, 0 deletions
.gitignore
Dockerfile
+9
-11
9 additions, 11 deletions
Dockerfile
with
11 additions
and
11 deletions
.gitignore
+
2
−
0
View file @
9c5f60cc
.idea/*
.vscode/*
cli
logid
rekor-cli
rekor-server
server
This diff is collapsed.
Click to expand it.
Dockerfile
+
9
−
11
View file @
9c5f60cc
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"]
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment