mirror of
https://github.com/LibreTranslate/LibreTranslate.git
synced 2025-05-31 11:52:20 +00:00
update Dockerfile and README
This commit is contained in:
parent
a0760eb23f
commit
7139b2f41b
2 changed files with 18 additions and 11 deletions
11
Dockerfile
11
Dockerfile
|
@ -4,13 +4,10 @@ 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 . .
|
||||
|
||||
# Copy everything else
|
||||
COPY app app
|
||||
COPY *.py LICENSE README.md ./
|
||||
# Install package from source code
|
||||
RUN pip install .
|
||||
|
||||
EXPOSE 5000
|
||||
ENTRYPOINT [ "python", "main.py", "--host", "0.0.0.0" ]
|
||||
ENTRYPOINT [ "libretranslate", "--host", "0.0.0.0" ]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue