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
30ea49e9
"Doc/Doxygen/Doxyfile.long" did not exist on "c3939740302d9b5dc4c2654614ac328227158818"
Unverified
Commit
30ea49e9
authored
3 years ago
by
Thomas McWork
Browse files
Options
Downloads
Patches
Plain Diff
reduce Docker image size
parent
ffc0c1dc
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.dockerignore
+3
-0
3 additions, 0 deletions
.dockerignore
Dockerfile
+10
-3
10 additions, 3 deletions
Dockerfile
with
13 additions
and
3 deletions
.dockerignore
+
3
−
0
View file @
30ea49e9
.git*
Dockerfile
.Dockerfile.swp
LICENSE
This diff is collapsed.
Click to expand it.
Dockerfile
+
10
−
3
View file @
30ea49e9
FROM
python:3.8
FROM
python:3.8
.12-slim-bullseye
ARG
with_models=false
WORKDIR
/app
ARG
DEBIAN_FRONTEND=noninteractive
RUN
apt-get update
-qq
\
&&
apt-get
-qqq
install
--no-install-recommends
-y
libicu-dev pkg-config gcc g++
\
&&
apt-get clean
\
&&
rm
-rf
/var/lib/apt
RUN
pip
install
--upgrade
pip
COPY
. .
...
...
@@ -17,7 +23,8 @@ RUN if [ "$with_models" = "true" ]; then \
fi
# Install package from source code
RUN
pip
install
.
RUN
pip
install
.
\
&&
pip cache purge
EXPOSE
5000
ENTRYPOINT
[ "libretranslate", "--host", "0.0.0.0" ]
ENTRYPOINT
[ "
/home/worker/.local/bin/
libretranslate", "--host", "0.0.0.0" ]
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