Skip to content

Commit 221dc2c

Browse files
SAnCherepanSAnCherepan
authored andcommitted
Fixed Dockerfile, deps and docs
1 parent feaf38e commit 221dc2c

3 files changed

Lines changed: 17 additions & 6 deletions

File tree

README.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,16 @@ This is a simple example package that can be used to get basic info on GitHub re
44

55
# Installation
66

7-
Install the python package:
8-
```
7+
Python package:
8+
```commandline
99
python -m pip install --index-url https://test.pypi.org/simple/ repo_reader_sancherepan
1010
```
1111

12+
Docker image:
13+
```commandline
14+
docker pull sancherepan/repo-reader
15+
docker run -it --rm sancherepan/repo-reader read-repos --help
16+
```
1217

1318
# Usage
1419

@@ -24,3 +29,8 @@ In command line:
2429
```commandline
2530
read-repos your_github_auth_token github_repo_group_name
2631
```
32+
33+
In docker:
34+
```commandline
35+
docker run -it --rm sancherepan/repo-reader read-repos your_github_auth_token github_repo_group_name
36+
```

docker/Dockerfile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,4 @@ COPY . /src
44

55
RUN pip install /src && rm -rf /src
66

7-
ENTRYPOINT ["bash", "-c", "read-repos"]
8-
9-
CMD ["-h"]
7+
CMD ["read-repos", "-h"]

pyproject.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,12 @@ classifiers = [
1717
"Programming Language :: Python :: 3.11",
1818
"License :: OSI Approved :: MIT License"
1919
]
20+
dependencies = [
21+
"requests"
22+
]
2023

2124
[project.urls]
2225
"Homepage" = "https://github.com/sancherepan/test-code"
2326

2427
[project.scripts]
25-
read-repos = "repo_reader_sancherepan.print_repos_info:main"
28+
read-repos = "repo_reader_sancherepan.print_repos_info:main"

0 commit comments

Comments
 (0)