Update dockerfile

changed the working directory to / (root) and entrypoint to /musort.py
This commit is contained in:
tdeerenberg
2023-04-16 19:34:02 +02:00
committed by GitHub
parent 8f7666005f
commit d47e1ce80d

View File

@ -2,7 +2,7 @@ FROM python:3.10-slim
# Probably should do update/upgrade for any CVEs # Probably should do update/upgrade for any CVEs
WORKDIR /app WORKDIR /
# Set up requirements # Set up requirements
COPY requirements.txt requirements.txt COPY requirements.txt requirements.txt
@ -11,7 +11,7 @@ RUN python3 -m pip install pip --upgrade --no-cache-dir && \
python3 -m pip install -r requirements.txt --no-cache-dir python3 -m pip install -r requirements.txt --no-cache-dir
# Copy in code # Copy in code
COPY ./src/musort.py musort.py COPY ./src/musort-docker.py /musort.py
# docker run --name musort --rm -it musort --help # docker run --name musort --rm -it musort --help
ENTRYPOINT ["python3", "/app/musort.py"] ENTRYPOINT ["python3", "/musort.py"]