-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (21 loc) · 596 Bytes
/
Dockerfile
File metadata and controls
29 lines (21 loc) · 596 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
FROM python:3.13-slim
########################################
# add a user so we're not running as root
########################################
RUN useradd useruser
RUN apt-get update
RUN apt-get install -y git
RUN apt-get clean
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/