Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Python Django Template
Manage
Activity
Members
Labels
Plan
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
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
Quang tru HUYNH
Python Django Template
Commits
3504bedf
Commit
3504bedf
authored
6 years ago
by
Thomas MENARD
Browse files
Options
Downloads
Patches
Plain Diff
Add Dockerfile, gitlab-ci
parent
f621c5e5
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+1
-1
1 addition, 1 deletion
.gitlab-ci.yml
Dockerfile
+2
-0
2 additions, 0 deletions
Dockerfile
with
3 additions
and
1 deletion
.gitlab-ci.yml
+
1
−
1
View file @
3504bedf
...
...
@@ -15,6 +15,6 @@ build:
-
docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
-
docker build -t ${CI_REGISTRY}/${CI_PROJECT_NAME}/polls:${CI_COMMIT_SHORT_SHA} .
-
docker tag ${CI_REGISTRY}/${CI_PROJECT_NAME}/polls:${CI_COMMIT_SHORT_SHA} ${CI_REGISTRY}/${CI_PROJECT_NAME}/polls:latest
-
docker push
--
${CI_REGISTRY}/${CI_PROJECT_NAME}/polls
-
docker push
"
${CI_REGISTRY}/${CI_PROJECT_NAME}/polls
:${CI_COMMIT_SHORT_SHA}"
tags
:
-
k8s
This diff is collapsed.
Click to expand it.
Dockerfile
+
2
−
0
View file @
3504bedf
...
...
@@ -10,6 +10,8 @@ FROM python:3
RUN
apt-get update
&&
apt-get upgrade
-y
&&
apt-get
install
\
-y
--no-install-recommends
python3
ENV
PATH /env/bin:$PATH
# Install pip dependencies
ADD
requirements.txt /app/requirements.txt
RUN
pip
install
--default-timeout
=
100
--upgrade
pip
&&
pip
install
-r
/app/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