mirror of
https://github.com/LibreTranslate/LibreTranslate.git
synced 2024-11-28 10:50:59 +00:00
19 lines
392 B
Docker
19 lines
392 B
Docker
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 else
|
|
COPY app app
|
|
COPY *.py LICENSE README.md ./
|
|
|
|
EXPOSE 5000
|
|
ENTRYPOINT [ "python", "main.py", "--host", "0.0.0.0" ]
|