forked from josegonzalez/python-github-backup
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
16 lines (11 loc) · 382 Bytes
/
Copy pathDockerfile
File metadata and controls
16 lines (11 loc) · 382 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
FROM python:3.9.18-slim
RUN --mount=type=cache,target=/var/cache/apt \
apt-get update && apt-get install -y git git-lfs
WORKDIR /usr/src/app
COPY release-requirements.txt .
RUN --mount=type=cache,target=/root/.cache/pip \
pip install -r release-requirements.txt
COPY . .
RUN --mount=type=cache,target=/root/.cache/pip \
pip install .
ENTRYPOINT [ "github-backup" ]