19 lines
496 B
Docker
19 lines
496 B
Docker
FROM docker.io/archlinux/base:latest
|
|
LABEL MAINTAINER "Felipe Martin <me@fmartingr.com>"
|
|
|
|
COPY requirements.txt /tmp/requirements.txt
|
|
|
|
RUN pacman -Syyu --noconfirm python python-pip base-devel
|
|
RUN pip install -r /tmp/requirements.txt
|
|
RUN useradd builder -u 1000
|
|
RUN chown -R 1000:1000 /tmp
|
|
RUN echo "builder ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/builder
|
|
RUN echo "nameserver 9.9.9.9" > /etc/resolv.conf
|
|
|
|
USER builder
|
|
|
|
COPY build.py /tmp/build.py
|
|
WORKDIR /tmp
|
|
|
|
CMD ["python", "/tmp/build.py"]
|