mirror of
https://github.com/LibreTranslate/LibreTranslate.git
synced 2024-09-12 07:30:16 +02:00
15 lines
335 B
Docker
15 lines
335 B
Docker
|
FROM python:3.8
|
||
|
|
||
|
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 . .
|
||
|
|
||
|
EXPOSE 5000
|
||
|
ENTRYPOINT [ "python", "main.py", "--host", "0.0.0.0" ]
|