Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
LibreTranslate
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
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Riße, Matthias
LibreTranslate
Commits
76f069d4
Commit
76f069d4
authored
4 years ago
by
mammo0
Browse files
Options
Downloads
Patches
Plain Diff
add an option to include the language models into the Docker image
-> this allows the direct offline usage of the Docker image
parent
42ec04e4
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Dockerfile
+10
-0
10 additions, 0 deletions
Dockerfile
with
10 additions
and
0 deletions
Dockerfile
+
10
−
0
View file @
76f069d4
FROM
python:3.8
ARG
with_models=false
WORKDIR
/app
RUN
pip
install
--upgrade
pip
COPY
. .
# check for offline build
RUN if
[
"
$with_models
"
=
"true"
]
;
then
\
# install only the dependencies first
pip install -e .; \
# initialize the language models
./install_models.py; \
fi
# Install package from source code
RUN
pip
install
.
...
...
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