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
3f5a36a6
Commit
3f5a36a6
authored
1 year ago
by
Empiriker
Browse files
Options
Downloads
Patches
Plain Diff
update Dockerfile
parent
958795bc
No related branches found
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
Dockerfile
+12
-12
12 additions, 12 deletions
Dockerfile
docker-compose.yaml
+0
-17
0 additions, 17 deletions
docker-compose.yaml
with
12 additions
and
29 deletions
Dockerfile
+
12
−
12
View file @
3f5a36a6
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/
COPY
/dumps/. ./dumps/
RUN
python ./src/load_templates.py
RUN
rm
-rf
./dumps
EXPOSE
80
# Set Flask environment variables
ENV
FLASK_APP=/src/app.py
CMD
["flask", "run", "--debug"]
ENV
FLASK_APP /app/src/app.py
CMD
["python", "-u", "-m", "flask", "run", "--host=0.0.0.0", "--port=80", "--debug"]
\ No newline at end of file
This diff is collapsed.
Click to expand it.
docker-compose.yaml
deleted
100644 → 0
+
0
−
17
View file @
958795bc
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