Spaces:
Running
Running
MilesCranmer
commited on
Commit
•
e950e9a
1
Parent(s):
05992de
Create dockerfile for all-contributors
Browse files- .all-contributorsrc +2 -2
- docs/allcontributors.dockerfile +13 -0
.all-contributorsrc
CHANGED
@@ -4,8 +4,8 @@
|
|
4 |
"repoType": "github",
|
5 |
"repoHost": "https://github.com",
|
6 |
"files": [
|
7 |
-
"README.md",
|
8 |
-
"CONTRIBUTORS.md"
|
9 |
],
|
10 |
"imageSize": 50,
|
11 |
"commit": false,
|
|
|
4 |
"repoType": "github",
|
5 |
"repoHost": "https://github.com",
|
6 |
"files": [
|
7 |
+
"/workspace/README.md",
|
8 |
+
"/workspace/CONTRIBUTORS.md"
|
9 |
],
|
10 |
"imageSize": 50,
|
11 |
"commit": false,
|
docs/allcontributors.dockerfile
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Build with:
|
2 |
+
# docker build -t allcontributors -f docs/allcontributors.dockerfile .
|
3 |
+
# Run with:
|
4 |
+
# docker run --rm -v $(pwd):/workspace allcontributors generate
|
5 |
+
FROM node:bullseye-slim
|
6 |
+
|
7 |
+
RUN yarn add --dev all-contributors-cli
|
8 |
+
|
9 |
+
ENV HOME=/workspace
|
10 |
+
WORKDIR /workspace
|
11 |
+
|
12 |
+
ENTRYPOINT ["yarn", "all-contributors"]
|
13 |
+
CMD ["generate", "--config=/workspace/.all-contributorsrc"]
|