File tree Expand file tree Collapse file tree 3 files changed +20
-6
lines changed
Expand file tree Collapse file tree 3 files changed +20
-6
lines changed Original file line number Diff line number Diff line change @@ -2,17 +2,29 @@ FROM alpine:3.20
22
33LABEL 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
1211ADD "." /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
1729WORKDIR /work
1830
Original file line number Diff line number Diff line change 1+ source /pyapi/bin/activate
Original file line number Diff line number Diff line change 11#! /usr/bin/env sh
2+ . /pyapi/bin/activate
23# simple script to make the npo_ prefixes superflouous
34command=$1
45shift
You can’t perform that action at this time.
0 commit comments