-
Notifications
You must be signed in to change notification settings - Fork 8
/
Dockerfile
23 lines (19 loc) · 797 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
ARG GIT_COMMIT=unspecified
ARG GIT_REMOTE=unspecified
ARG VERSION=unspecified
FROM python:3.10-alpine
ARG GIT_COMMIT
ARG GIT_REMOTE
ARG VERSION
LABEL org.opencontainers.image.authors="@felddy @mcdonnnj"
LABEL org.opencontainers.image.licenses="CC0-1.0"
LABEL org.opencontainers.image.revision=${GIT_COMMIT}
LABEL org.opencontainers.image.source=${GIT_REMOTE}
LABEL org.opencontainers.image.title="Lineage GitHub Action"
LABEL org.opencontainers.image.vendor="Cybersecurity and Infrastructure Security Agency"
LABEL org.opencontainers.image.version=${VERSION}
COPY . ./
RUN apk add --no-cache build-base git libffi-dev
RUN python3 -m pip install --no-cache-dir --upgrade pip setuptools wheel
RUN pip install --no-cache-dir --requirement requirements.txt
ENTRYPOINT ["python3", "-m", "lineage"]