mirror of
https://github.com/LibreTranslate/LibreTranslate.git
synced 2025-05-31 11:52:20 +00:00
chore(docker): copy models first
This commit is contained in:
parent
e95915ff87
commit
4274543bc8
2 changed files with 8 additions and 5 deletions
|
@ -2,15 +2,18 @@ FROM python:3.8
|
|||
|
||||
WORKDIR /app
|
||||
|
||||
# This expects the models submodule to be present
|
||||
COPY models models
|
||||
|
||||
RUN pip install --upgrade pip
|
||||
|
||||
# Avoid rebuilding this step if no changes to requirements.txt
|
||||
COPY requirements.txt .
|
||||
RUN pip install -r requirements.txt
|
||||
|
||||
# Copy everything in the container
|
||||
# This expects the models submodule to be present
|
||||
COPY . .
|
||||
# Copy everything else
|
||||
COPY app app
|
||||
COPY *.py LICENSE README.md ./
|
||||
|
||||
EXPOSE 5000
|
||||
ENTRYPOINT [ "python", "main.py", "--host", "0.0.0.0" ]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue