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
open
bor
Commits
0aa8feeb
Commit
0aa8feeb
authored
3 years ago
by
Victor Castell
Browse files
Options
Downloads
Patches
Plain Diff
Apply best practices to Dockerfile
parent
e9703c7e
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Dockerfile
+15
-6
15 additions, 6 deletions
Dockerfile
with
15 additions
and
6 deletions
Dockerfile
+
15
−
6
View file @
0aa8feeb
# Build Geth in a stock Go builder container
# Build Geth in a stock Go builder container
FROM
golang:1.17-alpine
as
builder
FROM
golang:1.17-alpine
as
builder
RUN
apk add
--no-cache
make gcc musl-dev linux-headers git bash
RUN
set
-x
\
&&
buildDeps
=
'bash build-base musl-dev linux-headers git'
\
&&
apk add
--update
$buildDeps
\
&&
rm
-rf
/var/cache/apk/
*
\
&&
mkdir
-p
/bor
ADD
. /bor
WORKDIR
/bor
RUN
cd
/bor
&&
make bor-all
COPY
. .
RUN
make bor-all
CMD
["/bin/bash"]
CMD
["/bin/bash"]
# Pull Bor into a second stage deploy alpine container
# Pull Bor into a second stage deploy alpine container
FROM
alpine:latest
FROM
alpine:3.14
RUN
set
-x
\
&&
apk add
--update
--no-cache
\
ca-certificates
\
&&
rm
-rf
/var/cache/apk/
*
RUN
apk add
--no-cache
ca-certificates
COPY
--from=builder /bor/build/bin/bor /usr/local/bin/
COPY
--from=builder /bor/build/bin/bor /usr/local/bin/
COPY
--from=builder /bor/build/bin/bootnode /usr/local/bin/
COPY
--from=builder /bor/build/bin/bootnode /usr/local/bin/
EXPOSE
8545 8546 8547 30303 30303/udp
EXPOSE
8545 8546 8547 30303 30303/udp
\ No newline at end of file
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