File: Dockerfile.archlinux.py3

package info (click to toggle)
python-plyer 2.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,724 kB
  • sloc: python: 13,395; sh: 217; makefile: 177
file content (41 lines) | stat: -rw-r--r-- 906 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
FROM base/archlinux

ENV APP_DIR=/app
RUN mkdir $APP_DIR
WORKDIR $APP_DIR

# install default packages
RUN pacman -Fy && \
    pacman -Sy && \
    yes |pacman -Sy \
    gcc \
    extra/python \
    jdk-openjdk \
    lshw \
    wget \
    apparmor \
    xdg-user-dirs \
    && yes |pacman -Rns $(pacman -Qtdq) ||true \
    && yes |pacman -Sc

# generate user folder locations (Pictures, Downloads, ...)
RUN xdg-user-dirs-update

# install PIP
RUN wget https://bootstrap.pypa.io/get-pip.py -O get-pip3.py
RUN python -V && \
    python get-pip3.py && \
    rm get-pip3.py && \
    python -m pip install --upgrade pip

# install dev packages
COPY devrequirements.txt .
RUN python -m pip install \
        --upgrade \
        --requirement devrequirements.txt
RUN python -m pip install pyjnius

COPY . $APP_DIR
COPY ./ci/entrypoint.sh $APP_DIR
ENV PYTHON=/usr/bin/python
ENTRYPOINT ["/app/entrypoint.sh", "env"]