Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
U
url_shorter_docker
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
Service Desk
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
Jonas Leder
url_shorter_docker
Commits
b8794661
Commit
b8794661
authored
5 years ago
by
Jonas Leder
Browse files
Options
Downloads
Patches
Plain Diff
moved to manual requirements
parent
853fb479
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#51
passed
5 years ago
Stage: build
Stage: deploy
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Dockerfile
+2
-3
2 additions, 3 deletions
Dockerfile
requirements.txt
+6
-0
6 additions, 0 deletions
requirements.txt
with
8 additions
and
3 deletions
Dockerfile
+
2
−
3
View file @
b8794661
...
...
@@ -11,6 +11,7 @@ COPY import.py /app/import.py
COPY
export.py /app/export.py
COPY
main.py /app/main.py
COPY
VERSION /app/VERISON
COPY
requirements.txt /app/requirements.txt
#Make a complete system update. apt-utils is needed for configuring packages, so we need to install it
RUN
apt update
...
...
@@ -18,9 +19,7 @@ RUN apt install apt-utils -y
RUN
apt upgrade
-y
RUN
apt clean
#Install pipreqs. This tool is used to make the requirements.txt file automatic. Afterwards install them.
RUN
pip
install
pipreqs
RUN
pipreqs
.
--force
#Install libraries
RUN
python3
-m
pip
install
-r
requirements.txt
#Compile the Python files (for more speed) and replace the original files
...
...
This diff is collapsed.
Click to expand it.
requirements.txt
0 → 100644
+
6
−
0
View file @
b8794661
waitress
flask
qrcode
requests
Pillow
GitHub-Flask
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