Skip to content

Commit 690b32d

Browse files
committed
Fixing build.
1 parent cf07180 commit 690b32d

File tree

3 files changed

+20
-6
lines changed

3 files changed

+20
-6
lines changed

docker/Dockerfile

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,29 @@ FROM alpine:3.20
22

33
LABEL org.opencontainers.image.description="A alpine image containing python 3 with the pyapi library installed"
44

5-
RUN apk add --no-cache --upgrade --virtual .build-deps gcc build-base python3-dev cargo libffi-dev openssl-dev && \
6-
apk add --no-cache git python3 py3-pip gcc tzdata ffmpeg mediainfo && \
7-
pip3 install cffi && \
5+
RUN apk add --no-cache --upgrade --virtual .build-deps && \
6+
apk add --no-cache python3 py3-pip && \
87
apk del .build-deps && \
98
ln -s /usr/share/zoneinfo/Europe/Amsterdam /etc/localtime && \
109
mkdir /work
1110

1211
ADD "." /checkout
13-
RUN pip3 install --upgrade '/checkout' && \
14-
cp /checkout/docker/entrypoint.sh / && \
15-
rm -rf /checkout
12+
13+
ENV ENV="/root/.ashrc"
14+
15+
RUN cp /checkout/docker/entrypoint.sh / && \
16+
cp /checkout/docker/ashrc /root/.ashrc
17+
18+
19+
RUN python3 -m venv /pyapi
20+
21+
RUN source /pyapi/bin/activate && \
22+
pip install --upgrade pip && \
23+
pip install --upgrade '/checkout' && \
24+
rm -rf /checkout
25+
26+
27+
1628

1729
WORKDIR /work
1830

docker/ashrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
source /pyapi/bin/activate

docker/entrypoint.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/usr/bin/env sh
2+
. /pyapi/bin/activate
23
# simple script to make the npo_ prefixes superflouous
34
command=$1
45
shift

0 commit comments

Comments
 (0)