Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
renovate
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
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
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SmartDataLab
public
applications
renovate
Commits
c8ba3e6b
You need to sign in or sign up before continuing.
Commit
c8ba3e6b
authored
6 years ago
by
Rhys Arkins
Browse files
Options
Downloads
Patches
Plain Diff
build: add python/pip/pipenv to Dockerfile
Closes #3152
parent
c711fb4c
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Dockerfile
+22
-3
22 additions, 3 deletions
Dockerfile
with
22 additions
and
3 deletions
Dockerfile
+
22
−
3
View file @
c8ba3e6b
...
...
@@ -9,13 +9,13 @@ ENV DEBIAN_FRONTEND noninteractive
ENV
LC_ALL C.UTF-8
ENV
LANG C.UTF-8
RUN
apt-get update
&&
apt-get
install
-y
gpg curl wget unzip xz-utils git openssh-client
&&
apt-get clean
-y
RUN
apt-get update
&&
apt-get
install
-y
gpg curl wget unzip xz-utils git openssh-client
bsdtar
&&
apt-get clean
-y
## Node.js
# START copy Node.js from https://github.com/nodejs/docker-node/blob/master/10/jessie/Dockerfile
ENV
NODE_VERSION 10.15.
0
ENV
NODE_VERSION 10.15.
1
RUN
ARCH
=
&&
dpkgArch
=
"
$(
dpkg
--print-architecture
)
"
\
&&
case
"
${
dpkgArch
##*-
}
"
in
\
...
...
@@ -50,7 +50,7 @@ RUN ARCH= && dpkgArch="$(dpkg --print-architecture)" \
&& curl -fsSLO --compressed "https://nodejs.org/dist/v$NODE_VERSION/SHASUMS256.txt.asc" \
&& gpg --batch --decrypt --output SHASUMS256.txt SHASUMS256.txt.asc \
&& grep " node-v$NODE_VERSION-linux-$ARCH.tar.xz\$" SHASUMS256.txt | sha256sum -c - \
&& tar -xJf "node-v$NODE_VERSION-linux-$ARCH.tar.xz" -C /usr/local --strip-components=1 --no-same-owner \
&&
bsd
tar -xJf "node-v$NODE_VERSION-linux-$ARCH.tar.xz" -C /usr/local --strip-components=1 --no-same-owner \
&& rm "node-v$NODE_VERSION-linux-$ARCH.tar.xz" SHASUMS256.txt.asc SHASUMS256.txt \
&& ln -s /usr/local/bin/node /usr/local/bin/nodejs
...
...
@@ -82,6 +82,17 @@ RUN mkdir -p "$GOPATH/src" "$GOPATH/bin" && chmod -R 777 "$GOPATH"
ENV
CGO_ENABLED=0
# Python
RUN
apt-get update
&&
apt-get
install
-y
python3.7-dev python3-distutils
&&
apt-get clean
RUN
rm
-fr
/usr/bin/python3
&&
ln
/usr/bin/python3.7 /usr/bin/python3
RUN
ln
/usr/bin/python3.7 /usr/bin/python
# Pip
RUN
curl
--silent
https://bootstrap.pypa.io/get-pip.py | python
# Set up ubuntu user
RUN
groupadd
--gid
1000 ubuntu
\
...
...
@@ -91,6 +102,14 @@ RUN chmod -R a+rw /usr
USER
ubuntu
# Pipenv
ENV
PATH="/home/ubuntu/.local/bin:$PATH"
RUN
pip
install
--user
pipenv
# Yarn
ENV
YARN_VERSION=1.13.0
RUN
npm i
-g
yarn@
${
YARN_VERSION
}
...
...
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