26 lines
576 B
Docker
26 lines
576 B
Docker
FROM getflow/cloudflared-ssh:python
|
|
|
|
WORKDIR /src
|
|
|
|
RUN set -eux; \
|
|
apt-get update; \
|
|
apt-get install -y git build-essential libffi-dev; \
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
# https://github.com/actions/runner-images/issues/6775
|
|
RUN git config --system --add safe.directory *
|
|
|
|
COPY src/requirements.txt ./
|
|
RUN pip install -r requirements.txt
|
|
|
|
COPY src/entrypoint /usr/local/bin/
|
|
COPY src/docker-entrypoint.sh /
|
|
COPY src/add-to-wiki /usr/local/bin/
|
|
COPY src/default.md.j2 /var/
|
|
|
|
RUN chmod +x /docker-entrypoint.sh
|
|
|
|
WORKDIR /workdir
|
|
|
|
ENTRYPOINT [ "/docker-entrypoint.sh" ]
|