Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
duniter
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Monitor
Service Desk
Analyze
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
nodes
typescript
duniter
Commits
122a95d4
Commit
122a95d4
authored
5 years ago
by
Stéphane Veyret
Committed by
Éloïs
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Use Makefile in Dockerfile
parent
78eca00b
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
release/docker/Dockerfile
+8
-11
8 additions, 11 deletions
release/docker/Dockerfile
with
8 additions
and
11 deletions
release/docker/Dockerfile
+
8
−
11
View file @
122a95d4
...
@@ -15,6 +15,8 @@ RUN apk update && \
...
@@ -15,6 +15,8 @@ RUN apk update && \
update-ca-certificates
&&
\
update-ca-certificates
&&
\
apk add
--update
python make g++
apk add
--update
python make g++
WORKDIR
/duniter
# copy source tree
# copy source tree
COPY
./ ./
COPY
./ ./
...
@@ -22,15 +24,10 @@ COPY ./ ./
...
@@ -22,15 +24,10 @@ COPY ./ ./
RUN
curl https://sh.rustup.rs
-sSf
| sh
-s
--
-y
RUN
curl https://sh.rustup.rs
-sSf
| sh
-s
--
-y
# build duniter
# build duniter
RUN
export
PATH
=
"
$HOME
/.cargo/bin:
$PATH
"
&&
\
RUN
PATH
=
${
HOME
}
/.cargo/bin:
${
PATH
}
\
export
RUSTFLAGS
=
"-C target-feature=-crt-static"
&&
\
RUSTFLAGS
=
"-C target-feature=-crt-static"
\
export
NEON_BUILD_RELEASE
=
"true"
&&
\
make
-C
release
ADD_DEBUG
=
N server-gui clean
\
npm add duniter-ui@
${
DUNITER_UI_VER
}
&&
\
&&
mv
release/docker/duniter.sh work/docker.sh
npm i
&&
npm prune
--production
&&
\
mv
release/docker/duniter.sh docker.sh
&&
\
rm
-rf
coverage release
test
&&
\
rm
-rf
target
&&
\
rm
-rf
neon/native/target
# ------------------------------------------------------------------------------
# ------------------------------------------------------------------------------
# Final Stage
# Final Stage
...
@@ -44,7 +41,7 @@ RUN addgroup -S -g 1111 duniter && \
...
@@ -44,7 +41,7 @@ RUN addgroup -S -g 1111 duniter && \
RUN
mkdir
-p
/var/lib/duniter /etc/duniter
&&
chown
duniter:duniter /var/lib/duniter /etc/duniter
RUN
mkdir
-p
/var/lib/duniter /etc/duniter
&&
chown
duniter:duniter /var/lib/duniter /etc/duniter
# copy the build artifact from the build stage
# copy the build artifact from the build stage
COPY
--from=build --chown=duniter:duniter
.
/duniter/duniter
COPY
--from=build --chown=duniter:duniter
/duniter/work
/duniter/duniter
# copy bootstrap script
# copy bootstrap script
RUN
cp
/duniter/duniter/docker.sh /usr/bin/duniter
&&
\
RUN
cp
/duniter/duniter/docker.sh /usr/bin/duniter
&&
\
...
...
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