Skip to content

Commit 9721f66

Browse files
committed
reduce retriever package
1 parent 854f355 commit 9721f66

File tree

3 files changed

+26
-6
lines changed

3 files changed

+26
-6
lines changed

.github/workflows/push.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,14 @@ jobs:
1414
uses: docker/setup-qemu-action@v3
1515
- name: Set up Docker Buildx
1616
uses: docker/setup-buildx-action@v3
17+
- name: Build and test core
18+
run: ./test/test.sh
1719
- name: Login to Docker Hub
1820
if: github.ref == 'refs/heads/master'
1921
uses: docker/login-action@v3
2022
with:
2123
username: ${{ secrets.DOCKER_USERNAME }}
2224
password: ${{ secrets.DOCKER_PASSWORD }}
23-
# Retriever first to avoid polluting with unnecessary packages
2425
- name: Build and push retriever
2526
if: github.ref == 'refs/heads/master'
2627
uses: docker/build-push-action@v5
@@ -30,8 +31,6 @@ jobs:
3031
push: true
3132
tags: odota/retriever:latest
3233
file: Dockerfile.retriever
33-
- name: Build and test core
34-
run: ./test/test.sh
3534
- name: Build and push core
3635
if: github.ref == 'refs/heads/master'
3736
uses: docker/build-push-action@v5
@@ -41,4 +40,3 @@ jobs:
4140
platforms: linux/amd64
4241
push: true
4342
tags: odota/core:latest
44-

Dockerfile.retriever

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ COPY proto /usr/src/proto
1313
COPY svc/retriever.ts /usr/src/svc/retriever.ts
1414
COPY config.ts /usr/src/config.ts
1515
COPY index.ts /usr/src/index.ts
16-
COPY package.json /usr/src/package.json
16+
COPY package.retriever.json /usr/src/package.json
1717
WORKDIR /usr/src
18-
18+
RUN npm install
1919

2020
ENV PATH /usr/src/node_modules/.bin:$PATH
2121

package.retriever.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"name": "opendota-retriever",
3+
"description": "Open source Dota data platform",
4+
"version": "26.0.0",
5+
"license": "MIT",
6+
"scripts": {
7+
"start": "tsx index"
8+
},
9+
"repository": {
10+
"type": "git",
11+
"url": "http://github.com/odota/core"
12+
},
13+
"dependencies": {
14+
"axios": "^1.7.9",
15+
"compression": "^1.8.1",
16+
"dotenv": "^16.4.7",
17+
"express": "^4.21.2",
18+
"protobufjs": "^7.2.5",
19+
"steam-user": "^5.2.0",
20+
"tsx": "^4.19.2"
21+
}
22+
}

0 commit comments

Comments
 (0)