Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Portal
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Fachschaft
Portal
Commits
b6a559b9
Unverified
Commit
b6a559b9
authored
7 months ago
by
karp
Browse files
Options
Downloads
Patches
Plain Diff
Update Dockerfile
parent
4a8e4882
No related branches found
Branches containing commit
No related tags found
1 merge request
!21
Introduce Pipenv
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Dockerfile
+5
-2
5 additions, 2 deletions
Dockerfile
with
5 additions
and
2 deletions
Dockerfile
+
5
−
2
View file @
b6a559b9
...
...
@@ -5,10 +5,13 @@ WORKDIR /app
EXPOSE
5000
# First, copy and install only the requirements...
ENV
PIPENV_VENV_IN_PROJECT=1
RUN
pip
install
--upgrade
pip setuptools
COPY
requirements.txt .
RUN
pip
install
pipenv
COPY
Pipfile.lock .
RUN
pipenv requirements
>
requirements.txt
RUN
pip uninstall
--yes
pipenv
RUN
pip
install
-r
requirements.txt
# ... then the rest of the application. This allows the installation stage to be cached most of the time
# (so we don't have reinstall of all dependencies every time the container is rebuilt)
COPY
. .
...
...
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