Skip to content

Commit 4904b26

Browse files
authored
Use slim python as base image (#12)
* use slim python as base image, removes unused requirements * trigger update only on dev
1 parent c7747c5 commit 4904b26

File tree

3 files changed

+21
-20
lines changed

3 files changed

+21
-20
lines changed

.drone.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,20 @@ steps:
1919
cache_from:
2020
- "registry.dev.onetask.ai/${DRONE_REPO}:main"
2121
- "registry.dev.onetask.ai/${DRONE_REPO}:${DRONE_COMMIT_BRANCH}"
22+
23+
trigger:
24+
event:
25+
- push
26+
27+
---
28+
kind: pipeline
29+
type: docker
30+
name: trigger update
31+
32+
platform:
33+
arch: amd64
34+
35+
steps:
2236
- name: trigger update
2337
image: appleboy/drone-ssh
2438
settings:
@@ -32,7 +46,12 @@ steps:
3246
script:
3347
- /bin/sh ./trigger_dev_deployment.sh
3448

49+
depends_on:
50+
- amd64
51+
3552
trigger:
53+
branch:
54+
- dev
3655
event:
3756
- push
3857

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.9
1+
FROM python:3.9-slim
22

33
RUN apt update && apt install -y curl
44

requirements.txt

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,7 @@
1-
black==22.3.0
2-
certifi==2021.10.8
3-
charset-normalizer==2.0.12
4-
click==8.1.2
5-
idna==3.3
6-
joblib==1.2.0
7-
mypy-extensions==0.4.3
8-
nbconvert==7.0.0
91
numpy==1.22.3
102
pandas==1.4.2
11-
pathspec==0.9.0
12-
platformdirs==2.5.2
13-
python-dateutil==2.8.2
14-
pytz==2022.1
153
requests==2.27.1
164
scikit-learn==1.0.2
175
scipy==1.8.0
186
sequencelearn==0.0.8
19-
six==1.16.0
20-
threadpoolctl==3.1.0
21-
tinycss2==1.1.1
22-
tomli==2.0.1
23-
torch==1.11.0
24-
typing_extensions==4.2.0
25-
urllib3==1.26.9
7+
torch==1.11.0

0 commit comments

Comments
 (0)