-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
20 lines (18 loc) · 924 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM python:3.9-alpine
LABEL "maintainer"="Patrick Jahns <[email protected]>" \
"repository"="https://github.com/patrickjahns/ansible-later-action" \
"homepage"="https://github.com/patrickjahns/ansible-later-action" \
"com.github.actions.name"="ansible-later" \
"com.github.actions.description"="Run ansible-later" \
"com.github.actions.icon"="check-circle" \
"com.github.actions.color"="orange"
COPY requirements.txt /tmp/requirements.txt
RUN apk --no-cache add --virtual .build-deps build-base libffi-dev openssl-dev gcc musl-dev python3-dev cargo && \
apk --no-cache add git bash && \
pip install --upgrade --no-cache-dir pip && \
pip install --no-cache-dir -r /tmp/requirements.txt && \
apk del .build-deps && \
rm -rf /var/cache/apk/* && \
rm -rf /root/.cache/
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]