Skip to content

Commit

Permalink
Renamed docker-entrypoint
Browse files Browse the repository at this point in the history
  • Loading branch information
Sara Veldhoen committed Apr 11, 2024
1 parent b3c4735 commit 4c00e72
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 64 deletions.
29 changes: 19 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,26 +1,35 @@
FROM docker.io/python:3.10
FROM docker.io/python:3.11

RUN apt-get clean && apt-get update -y && apt-get upgrade -y

RUN apt-get install -y libgl1 ffmpeg

RUN pip install --upgrade pip
RUN pip install scenedetect[opencv] --upgrade
RUN pip install poetry==1.5.1

# Create dirs for:
# - Injecting config.yml: /root/.DANE
# - Mount point for input & output files: /mnt/dane-fs
# - Storing the source code: /src
RUN mkdir /root/.DANE /mnt/dane-fs /src

COPY ./requirements.txt /src
# - Storing the input file to be used while testing: /src/data
RUN mkdir /root/.DANE /mnt/dane-fs /src /data

WORKDIR /src

# copy the pyproject file and install all the dependencies first
RUN pip install --upgrade pip
RUN pip install scenedetect[opencv] --upgrade
RUN pip install -r requirements.txt
ENV POETRY_NO_INTERACTION=1 \
POETRY_VIRTUALENVS_IN_PROJECT=1 \
POETRY_VIRTUALENVS_CREATE=1 \
POETRY_CACHE_DIR=/tmp/poetry_cache



COPY pyproject.toml poetry.lock ./
RUN poetry install --no-ansi --without dev --no-root && rm -rf $POETRY_CACHE_DIR

COPY ./ /src
# Write provenance info about software versions to file
RUN echo "dane-video-segmentation-worker;https://github.com/beeldengeluid/dane-video-segmentation-worker/commit/$(git rev-parse HEAD)" >> /software_provenance.txt

COPY . /src

ENTRYPOINT ["./docker-entrypoint.sh"]
ENTRYPOINT ["./docker-entrypoint.sh"]
35 changes: 0 additions & 35 deletions Dockerfile.poetry

This file was deleted.

9 changes: 0 additions & 9 deletions docker-entrypoint.sh

This file was deleted.

10 changes: 0 additions & 10 deletions requirements.txt

This file was deleted.

0 comments on commit 4c00e72

Please sign in to comment.