Skip to content

Commit 65d9047

Browse files
authored
simplifying path handling
1 parent 95ae7cd commit 65d9047

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

recorder/Dockerfile.v2

+5-7
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,17 @@ FROM python:3.9-slim
22
ARG DEBIAN_FRONTEND=noninteractive
33
ENV TZ="America/New_York"
44
WORKDIR /src/app
5-
ENV DIR=/src/app
6-
75
ENV PTG_URL=http://api:8000
86

97
RUN apt-get -q update && \
10-
apt-get install -y ffmpeg gcc python3-opencv git \
8+
apt-get install -y ffmpeg python3-opencv git \
119
&& rm -rf /var/lib/apt/lists/*
1210

1311
RUN pip install --no-cache-dir git+https://github.com/VIDA-NYU/ptgctl.git
14-
ADD setup.py README.md LICENSE $DIR/
15-
ADD ptgprocess/__init__.py $DIR/ptgprocess/
16-
RUN pip install --no-cache-dir -U -e $DIR/ptgprocess
17-
ADD ptgprocess/ $DIR/ptgprocess/
12+
ADD setup.py README.md LICENSE ptgprocess/
13+
ADD ptgprocess/__init__.py ptgprocess/ptgprocess/
14+
RUN pip install --no-cache-dir -U -e ./ptgprocess
15+
ADD ptgprocess/* ptgprocess/ptgprocess/
1816

1917
ADD recorder/requirements.txt .
2018
RUN pip install --no-cache-dir -r recorder/requirements.txt

0 commit comments

Comments
 (0)