Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
release-builder
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
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
docker
duniter
release-builder
Merge requests
!1
Add Dockerfile for image building
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Add Dockerfile for image building
ReleaseDockerfile
into
master
Overview
0
Commits
1
Pipelines
1
Changes
2
Merged
Stéphane Veyret
requested to merge
ReleaseDockerfile
into
master
7 years ago
Overview
0
Commits
1
Pipelines
1
Changes
2
Expand
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
c8bf1c9a
1 commit,
7 years ago
2 files
+
62
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
Dockerfile
0 → 100644
+
35
−
0
Options
# Image for Duniter releases on Linux.
#
# Building this image:
# docker build . -t duniter/release-builder
FROM
ubuntu:16.04
MAINTAINER
Stéphane Veyret <sveyret@gmail.com>
ENV
DEBIAN_FRONTEND noninteractive
# Install needed tools
RUN
apt-get update
&&
\
apt-get
install
-y
apt-transport-https curl
&&
\
curl
-sS
https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
&&
\
echo
"deb https://dl.yarnpkg.com/debian/ stable main"
|
tee
/etc/apt/sources.list.d/yarn.list
&&
\
apt-get update
&&
\
apt-get
install
-y
git build-essential yarn python-minimal zip
&&
\
apt-get clean
&&
rm
-rf
/var/lib/apt/lists/
*
/tmp/
*
/var/tmp/
*
# Create compiling user
RUN
mkdir
/duniter
&&
\
adduser
--system
--group
--quiet
--shell
/bin/bash
--home
/duniter duniter
&&
\
chown
duniter:duniter /duniter
WORKDIR
/duniter
# Load NVM
ENV
NVM_DIR "/duniter/.nvm"
USER
duniter
RUN
curl
-o-
https://raw.githubusercontent.com/creationix/nvm/v0.33.1/install.sh | bash
USER
root
# Entry point
COPY
bootstrap.sh /root/bootstrap.sh
RUN
chmod
u+x /root/bootstrap.sh
ENTRYPOINT
["/root/bootstrap.sh"]
Loading