Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Python Django Template
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
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
Show more breadcrumbs
Kubernetes Templates
Python Django Template
Commits
f621c5e5
Commit
f621c5e5
authored
6 years ago
by
Thomas MENARD
Browse files
Options
Downloads
Patches
Plain Diff
Add Dockerfile, gitlab-ci
parent
57e7ec6d
No related branches found
No related tags found
1 merge request
!1
Update with a working example
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Dockerfile
+2
-7
2 additions, 7 deletions
Dockerfile
with
2 additions
and
7 deletions
Dockerfile
+
2
−
7
View file @
f621c5e5
...
...
@@ -8,16 +8,11 @@ FROM python:3
# Here we update the image and add python3 virtualenv
RUN
apt-get update
&&
apt-get upgrade
-y
&&
apt-get
install
\
-y
--no-install-recommends
python3 virtualenv
# Create a virtualenv for the application dependencies.
# # If you want to use Python 2, use the -p python2.7 flag.
RUN
virtualenv
-p
python3 /env
ENV
PATH /env/bin:$PATH
-y
--no-install-recommends
python3
# Install pip dependencies
ADD
requirements.txt /app/requirements.txt
RUN
/env/bin/
pip
install
--default-timeout
=
100
--upgrade
pip
&&
/env/bin/
pip
install
-r
/app/requirements.txt
RUN
pip
install
--default-timeout
=
100
--upgrade
pip
&&
pip
install
-r
/app/requirements.txt
# We add the current content of the git repo in the /app directory
ADD
. /app
...
...
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