-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (24 loc) · 757 Bytes
/
Copy pathDockerfile
File metadata and controls
33 lines (24 loc) · 757 Bytes
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
30
31
32
33
FROM python:3.13-slim
########################################
# add a user so we're not running as root
########################################
RUN useradd useruser
RUN apt-get update \
&& apt-get install -y --no-install-recommends git \
&& apt-get autoremove -y \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN mkdir -p build/github_linter
WORKDIR /build
ADD github_linter /build/github_linter
COPY pyproject.toml .
COPY README.md .
COPY LICENSE .
RUN mkdir -p /home/useruser/
RUN chown useruser /home/useruser -R
RUN chown useruser /build -R
WORKDIR /build/
USER useruser
RUN mkdir -p ~/.config/
RUN pip install --no-cache-dir --disable-pip-version-check /build/
ENTRYPOINT ["/home/useruser/.local/bin/github-linter-web"]