pytest-test/Dockerfile
tzuwei-huang df1d6fe091
All checks were successful
TzuWei/pytest-test/pipeline/head This commit looks good
TzuWei/service-controller/pipeline/head This commit looks good
feat: sample of force use specific jenkins agent (#2)
Co-authored-by: TzuWei <tzuwei.huang@ironyun.com>
Reviewed-on: #2
Reviewed-by: joy <joy224961632@gmail.com>
Co-authored-by: tzuwei-huang <htw41043223@gmail.com>
Co-committed-by: tzuwei-huang <htw41043223@gmail.com>
2025-09-10 00:06:09 +09:00

22 lines
429 B
Docker

FROM python:3.13.3-bullseye
LABEL authors="tzu-weihuang"
ENV DISPLAY=:99
RUN apt-get -y update
RUN apt-get install -y p7zip-full
RUN useradd -ms /bin/bash -u 1000 jenkins && echo "jenkins ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
WORKDIR /app
COPY requirements.txt .
RUN pip3 install --upgrade pip
RUN pip3 install --no-cache-dir -r requirements.txt
RUN pip3 install --no-cache-dir pytest
COPY . .
USER jenkins
CMD ["bash"]