forgejo-init-script/Dockerfile

17 lines
440 B
Docker
Raw Permalink Normal View History

2023-09-27 15:47:39 +05:30
FROM python
LABEL org.opencontainers.image.source https://git.batsense.net/ForgeFlux/forgejo-init-script
RUN useradd -ms /bin/bash -u 1001 forgejo-init-script
RUN apt-get update && apt-get install -y ca-certificates git
RUN pip3 install requests
USER forgejo-init-script
WORKDIR /home/forgejo-init-script
RUN mkdir app/
RUN mkdir /tmp/forgeo-init-scrit/
WORKDIR /home/forgejo-init-script/app/
ENV CI=true
COPY . .
ENTRYPOINT ./tests.sh