Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
spaCy NLP Pipeline
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
Looking for advice? Join the
Matrix channel for GitLab users in Bielefeld
!
Show more breadcrumbs
SFB 1288 - INF
spaCy NLP Pipeline
Commits
51e7e0ae
Commit
51e7e0ae
authored
2 years ago
by
Patrick Jentsch
Browse files
Options
Downloads
Patches
Plain Diff
Better Dockerfile structure
parent
36e23dd9
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
+9
-11
9 additions, 11 deletions
Dockerfile
with
9 additions
and
11 deletions
Dockerfile
+
9
−
11
View file @
51e7e0ae
...
...
@@ -8,7 +8,7 @@ ARG UID="1000"
ARG
GID="1000"
ENV
LANG=C.UTF-8
ENV
LANG=
"
C.UTF-8
"
RUN
apt-get update
\
...
...
@@ -27,24 +27,22 @@ USER generic
WORKDIR
/home/generic
ENV
PYTHON2_VENV_PATH="/home/generic/
.
python2
/venvs/
venv"
RUN
python2
-m
virtualenv
"
${
PYTHON
2
_VENV_PATH
}
"
ENV
PYTHON
3
_VENV_PATH
="/home/generic/.python3/venvs/venv"
RUN
python3
-m
venv
"
${
PYTHON3_VENV_PATH
}
"
ENV
PYTHON2_VENV_PATH="/home/generic/python2
_
venv"
ENV
PYTHON
3
_VENV_PATH
="/home/generic/python3_venv
"
RUN
python2
-m
virtualenv
"
${
PYTHON
2
_VENV_PATH
}
"
\
&&
python3
-m
venv
"
${
PYTHON3_VENV_PATH
}
"
ENV
PATH="${PYTHON3_VENV_PATH}/bin:${PYTHON2_VENV_PATH}/bin:${PATH}"
COPY
--chown=generic:generic packages packages
COPY
--chown=generic:generic requirements.txt .
ENV
PYFLOW_VERSION="1.1.20"
RUN
wget
--output-document
-
--quiet
"https://github.com/Illumina/pyflow/releases/download/v
${
PYFLOW_VERSION
}
/pyflow-
${
PYFLOW_VERSION
}
.tar.gz"
|
tar
-xzf
-
\
&&
cd
"pyflow-
${
PYFLOW_VERSION
}
"
\
&&
python2 setup.py build
install
\
&&
cd
-
>
/dev/null
\
&&
rm
-r
"pyflow-
${
PYFLOW_VERSION
}
"
COPY
--chown=generic:generic packages packages
COPY
--chown=generic:generic requirements.txt requirements.txt
RUN
python3
-m
pip
install
--upgrade
pip
\
&&
rm
-r
"pyflow-
${
PYFLOW_VERSION
}
"
\
&&
python3
-m
pip
install
--upgrade
pip
\
&&
python3
-m
pip
install
wheel
\
&&
python3
-m
pip
install
-r
requirements.txt
\
&&
rm
-r
packages requirements.txt
...
...
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