17 lines
440 B
Docker
17 lines
440 B
Docker
|
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
|