FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
python-github-backup/Dockerfile at master · josegonzalez/python-github-backup · GitHub
josegonzalez
/
python-github-backup
Public
Notifications
You must be signed in to change notification settings
Fork
264
Star
1.6k
Code
Issues
5
Pull requests
0
Actions
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Security and quality
Insights
Expand file tree
Breadcrumbs
python-github-backup
/
Dockerfile
Copy path
More file actions
More file actions
Latest commit
History
History
History
38 lines (25 loc) · 841 Bytes
Breadcrumbs
python-github-backup
/
Dockerfile
Copy path
File metadata and controls
38 lines (25 loc) · 841 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
34
35
36
37
38
FROM
python:3.12-alpine3.22 AS builder
RUN
pip install --no-cache-dir --upgrade pip \
&& pip install --no-cache-dir uv
WORKDIR
/app
RUN
--mount=type=cache,target=/root/.cache/uv \
--mount=type=bind,source=requirements.txt,target=requirements.txt \
--mount=type=bind,source=release-requirements.txt,target=release-requirements.txt \
uv venv \
&& uv pip install -r release-requirements.txt
COPY
. .
RUN
--mount=type=cache,target=/root/.cache/uv \
uv pip install .
FROM
python:3.12-alpine3.22
ENV
PYTHONUNBUFFERED=1
RUN
apk add --no-cache \
ca-certificates \
git \
git-lfs \
&& addgroup -g 1000 appuser \
&& adduser -D -u 1000 -G appuser appuser
COPY
--from=builder --chown=appuser:appuser /app /app
WORKDIR
/app
USER
appuser
ENV
PATH=
"/app/.venv/bin:$PATH"
ENTRYPOINT
[
"github-backup"
]
Back
|
FazBrowse Home
|
New Git URL