good morning!!!!
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
bor
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
github
maticnetwork
bor
Commits
8f567dc8
Unverified
Commit
8f567dc8
authored
7 years ago
by
Péter Szilágyi
Browse files
Options
Downloads
Patches
Plain Diff
Dockerfile: multi-stage builds, Go 1.9
parent
504278e8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Dockerfile
+10
-8
10 additions, 8 deletions
Dockerfile
with
10 additions
and
8 deletions
Dockerfile
+
10
−
8
View file @
8f567dc8
FROM
alpine:3.6
# Build Geth in a stock Go builder container
FROM
golang:1.9-alpine
as
builder
RUN
apk add
--no-cache
make gcc musl-dev linux-headers
ADD
. /go-ethereum
ADD
. /go-ethereum
RUN
\
RUN
cd
/go-ethereum
&&
make geth
apk add
--no-cache
git go make gcc musl-dev linux-headers
&&
\
(
cd
go-ethereum
&&
make geth
)
&&
\
# Pull Geth into a second stage deploy alpine container
cp
go-ethereum/build/bin/geth /usr/local/bin/
&&
\
FROM
alpine:latest
apk del git go make gcc musl-dev linux-headers
&&
\
rm
-rf
/go-ethereum
EXPOSE
8545 30303 30303/udp
COPY
--from=builder /go-ethereum/build/bin/geth /usr/local/bin/
EXPOSE
8545 8546 30303 30303/udp
ENTRYPOINT
["geth"]
ENTRYPOINT
["geth"]
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