Skip to content

Commit 8b7b24e

Browse files
authored
use slim python image as base image, trigger update only on dev, remove unused python imports (#10)
1 parent 95bf1cf commit 8b7b24e

File tree

5 files changed

+22
-33
lines changed

5 files changed

+22
-33
lines changed

.drone.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,20 @@ steps:
2525
cache_from:
2626
- "registry.dev.onetask.ai/${DRONE_REPO}:main"
2727
- "registry.dev.onetask.ai/${DRONE_REPO}:${DRONE_COMMIT_BRANCH}"
28+
29+
trigger:
30+
event:
31+
- push
32+
33+
---
34+
kind: pipeline
35+
type: docker
36+
name: trigger update
37+
38+
platform:
39+
arch: amd64
40+
41+
steps:
2842
- name: trigger update
2943
image: appleboy/drone-ssh
3044
settings:
@@ -38,7 +52,12 @@ steps:
3852
script:
3953
- /bin/sh ./trigger_dev_deployment.sh
4054

55+
depends_on:
56+
- amd64
57+
4158
trigger:
59+
branch:
60+
- dev
4261
event:
4362
- push
4463

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
FROM python:3.9
2+
FROM python:3.9-slim
33

44
WORKDIR /program
55

dev.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
WORKDIR /app
44

requirements.txt

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,8 @@
1-
aniso8601==9.0.1
2-
anyio==3.3.4
3-
asgiref==3.4.1
4-
attrs==21.2.0
5-
black==21.10b0
6-
certifi==2021.10.8
7-
click==8.0.3
81
fastapi==0.70.0
9-
greenlet==1.1.2
10-
h11==0.12.0
11-
idna==3.3
12-
importlib-resources==5.4.0
13-
itsdangerous==2.0.1
14-
Jinja2==3.0.2
15-
jsonschema==4.2.1
16-
MarkupSafe==2.0.1
17-
mypy-extensions==0.4.3
18-
numpy==1.22.0
192
pandas==1.3.4
20-
pathspec==0.9.0
21-
platformdirs==2.4.0
223
psycopg2-binary==2.9.3
234
pydantic==1.8.2
24-
pyrsistent==0.18.0
25-
python-dateutil==2.8.2
26-
pytz==2021.3
27-
regex==2021.11.2
285
requests
29-
scipy==1.7.2
30-
six==1.16.0
31-
sniffio==1.2.0
326
SQLAlchemy==1.4.32
33-
starlette==0.16.0
34-
tomli==1.2.2
35-
typing-extensions==3.10.0.2
367
uvicorn==0.15.0
37-
zipp==3.7.0
388
weak-nlp==0.0.11

0 commit comments

Comments
 (0)