Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
EWOK
Manage
Activity
Members
Labels
Plan
Issues
2
Issue boards
Milestones
Wiki
External wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
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
Lex gaMe
EWOK
Commits
b5d2b865
Commit
b5d2b865
authored
1 year ago
by
Empiriker
Browse files
Options
Downloads
Patches
Plain Diff
containerize application
parent
84b58dcc
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.dockerignore
+3
-0
3 additions, 0 deletions
.dockerignore
Dockerfile
+18
-0
18 additions, 0 deletions
Dockerfile
docker-compose.yaml
+17
-0
17 additions, 0 deletions
docker-compose.yaml
with
38 additions
and
0 deletions
.dockerignore
0 → 100644
+
3
−
0
View file @
b5d2b865
__pycache__
apicache-py3
throttle.ctrl
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Dockerfile
0 → 100644
+
18
−
0
View file @
b5d2b865
FROM
python:3.11-bullseye
WORKDIR
/app
COPY
requirements.txt /app/
RUN
pip
install
--no-cache-dir
-r
requirements.txt
# Install git
RUN
apt-get update
&&
apt-get
install
-y
git
# Install wiktextract
RUN
git clone https://github.com/tatuylonen/wiktextract.git
&&
\
cd
wiktextract
&&
\
git checkout 205c4a2d88c27113f0117e0095f466605976af81
&&
\
python
-m
pip
install
--use-pep517
.
# Uninstall git, remove temporary files and package lists
RUN
apt-get purge
-y
git
&&
apt-get autoremove
-y
&&
apt-get clean
&&
rm
-rf
/var/lib/apt/lists/
*
COPY
/src/. ./src/
EXPOSE
80
# Set Flask environment variables
ENV
FLASK_APP=/src/app.py
CMD
["flask", "run", "--debug"]
This diff is collapsed.
Click to expand it.
docker-compose.yaml
0 → 100644
+
17
−
0
View file @
b5d2b865
version
:
'
3'
services
:
web
:
build
:
context
:
.
network
:
host
dockerfile
:
Dockerfile
environment
:
FLASK_DEBUG
:
"
on"
FLASK_APP
:
./src/app.py
ports
:
-
"
5000:80"
x-develop
:
watch
:
-
action
:
sync
path
:
./src
target
:
/src/
\ No newline at end of file
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