commit 56ff9c522a06af9dc9f7795ef2df4fc7c923ac40
parent 39f1fb61cb6142cce43ee3a1e5d8c4df0b7fff0a
Author: Stefan Koch <programming@stefan-koch.name>
Date: Sun, 9 Jul 2023 16:12:53 +0200
fix Dockerfile
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/Dockerfile b/Dockerfile
@@ -8,8 +8,8 @@ RUN pip install torch --index-url https://download.pytorch.org/whl/cpu
COPY requirements.txt .
RUN pip install -r requirements.txt
-COPY setup.py /opt/alphadistill/
-COPY alphadistill /opt/alphadistill/alphadistill
+COPY pyproject.toml /opt/alphadistill/
+COPY src/alphadistill /opt/alphadistill/src/alphadistill
RUN pip install -e /opt/alphadistill
RUN python -c 'import stanza; [stanza.download(model) for model in ["multilingual", "hr"]]' \
@@ -20,4 +20,4 @@ RUN python -c 'import stanza; [stanza.download(model) for model in ["multilingua
# WORKDIR /home/alphadistill
# USER alphadistill
-CMD ["python", "/opt/alphadistill/alphadistill/server.py"]
+CMD ["python", "/opt/alphadistill/src/alphadistill/server.py"]