-
Notifications
You must be signed in to change notification settings - Fork 47
/
Dockerfile
22 lines (17 loc) · 682 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM python:3.7
LABEL maintainer="Jakub Turek <[email protected]>"
LABEL "com.github.actions.name"="danger-python"
LABEL "com.github.actions.description"="Runs Python Dangerfiles"
LABEL "com.github.actions.icon"="zap"
LABEL "com.github.actions.color"="blue"
# Install dependencies
RUN curl -sL https://deb.nodesource.com/setup_10.x | bash -
RUN apt-get install -y nodejs
RUN python -m pip install --upgrade pip
RUN pip install poetry
RUN mkdir -p /usr/src/danger-python
COPY . /usr/src/danger-python
RUN cd /usr/src/danger-python && \
poetry config virtualenvs.create false && \
poetry install --no-dev
ENTRYPOINT ["npx", "--package", "danger", "danger-python", "ci"]