generated from reviewdog/action-composite-template
-
-
Notifications
You must be signed in to change notification settings - Fork 27
/
Dockerfile
29 lines (22 loc) · 763 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
24
25
26
27
28
29
FROM python:3.13-slim
ENV REVIEWDOG_VERSION="v0.17.4"
ENV WORKING_DIRECTORY="/workdir"
WORKDIR "$WORKING_DIRECTORY"
SHELL ["/bin/bash", "-eo", "pipefail", "-c"]
# hadolint ignore=DL3008
RUN apt-get update -y \
&& apt-get install -y --no-install-recommends \
wget \
git \
jq \
build-essential \
libsasl2-dev \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# Install reviewdog
RUN wget -O - -q https://raw.githubusercontent.com/reviewdog/reviewdog/master/install.sh| sh -s -- -b /usr/local/bin/ ${REVIEWDOG_VERSION}
# Install pip
RUN pip install --no-cache-dir --upgrade pip==23.1.2
# Set the entrypoint
COPY . "$WORKING_DIRECTORY"
ENTRYPOINT ["/bin/bash", "-c", "/${WORKING_DIRECTORY}/entrypoint.sh"]