1
0
mirror of https://github.com/LibreTranslate/LibreTranslate.git synced 2024-08-21 22:00:15 +02:00
LibreTranslate/Dockerfile
2021-02-08 10:56:45 -05:00

17 lines
322 B
Docker

FROM python:3.8
WORKDIR /app
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" ]