| 1 |
FROM base/archlinux |
| 2 |
|
| 3 |
ENV APP_DIR=/app |
| 4 |
RUN mkdir $APP_DIR |
| 5 |
WORKDIR $APP_DIR |
| 6 |
|
| 7 |
# install default packages |
| 8 |
RUN pacman -Fy && \ |
| 9 |
pacman -Sy && \ |
| 10 |
yes |pacman -Sy \ |
| 11 |
gcc \ |
| 12 |
extra/python \ |
| 13 |
jdk-openjdk \ |
| 14 |
lshw \ |
| 15 |
wget \ |
| 16 |
apparmor \ |
| 17 |
xdg-user-dirs \ |
| 18 |
&& yes |pacman -Rns $(pacman -Qtdq) ||true \ |
| 19 |
&& yes |pacman -Sc |
| 20 |
|
| 21 |
# generate user folder locations (Pictures, Downloads, ...) |
| 22 |
RUN xdg-user-dirs-update |
| 23 |
|
| 24 |
# install PIP |
| 25 |
RUN wget https://bootstrap.pypa.io/get-pip.py -O get-pip3.py |
| 26 |
RUN python -V && \ |
| 27 |
python get-pip3.py && \ |
| 28 |
rm get-pip3.py && \ |
| 29 |
python -m pip install --upgrade pip |
| 30 |
|
| 31 |
# install dev packages |
| 32 |
COPY devrequirements.txt . |
| 33 |
RUN python -m pip install \ |
| 34 |
--upgrade \ |
| 35 |
--requirement devrequirements.txt |
| 36 |
RUN python -m pip install pyjnius |
| 37 |
|
| 38 |
COPY . $APP_DIR |
| 39 |
COPY ./ci/entrypoint.sh $APP_DIR |
| 40 |
ENV PYTHON=/usr/bin/python |
| 41 |
ENTRYPOINT ["/app/entrypoint.sh", "env"] |