Skip to content

Commit 7af509b

Browse files
authored
use slim python as base image, trigger update only on dev, remove unused requirements (#15)
1 parent 2cef690 commit 7af509b

File tree

7 files changed

+31
-31
lines changed

7 files changed

+31
-31
lines changed

.drone.yml

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,25 @@ steps:
2525
cache_from:
2626
- "registry.dev.onetask.ai/${DRONE_REPO}:dev"
2727
- "registry.dev.onetask.ai/${DRONE_REPO}:${DRONE_COMMIT_BRANCH}"
28+
29+
trigger:
30+
event:
31+
- push
32+
33+
image_pull_secrets:
34+
- dockerconfigjson
35+
36+
---
37+
kind: pipeline
38+
type: docker
39+
name: trigger update
40+
41+
platform:
42+
arch: amd64
43+
44+
steps:
2845
- name: trigger update
2946
image: appleboy/drone-ssh
30-
failure: ignore
3147
settings:
3248
host: app.dev.onetask.ai
3349
username:
@@ -39,13 +55,15 @@ steps:
3955
script:
4056
- /bin/sh ./trigger_dev_deployment.sh
4157

58+
depends_on:
59+
- amd64
60+
4261
trigger:
62+
branch:
63+
- dev
4364
event:
4465
- push
4566

46-
image_pull_secrets:
47-
- dockerconfigjson
48-
4967
---
5068
kind: pipeline
5169
type: docker

Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1-
FROM python:3.10
1+
FROM python:3.10-slim
22

33
WORKDIR /program
44

5+
RUN apt update
6+
RUN apt install -y git
7+
58
COPY requirements.txt .
69

710
RUN pip3 install -r requirements.txt

dev.Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1-
FROM python:3.10
1+
FROM python:3.10-slim
22

33
WORKDIR /app
44

5+
RUN apt update
6+
RUN apt install -y git
7+
58
VOLUME ["/app"]
69

710
COPY requirements.txt .

requirements.txt

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,8 @@
1-
alembic==1.7.1
2-
anyio==3.5.0
3-
asgiref==3.5.0
4-
black==22.3.0
51
boto3==1.22.3
6-
botocore==1.25.3
7-
certifi==2020.6.20
8-
click==8.1.3
92
fastapi==0.75.2
10-
graphene_sqlalchemy==2.3.0
11-
greenlet==1.1.2
12-
h11==0.13.0
13-
idna==3.3
14-
jmespath==1.0.0
3+
GitPython==3.1.27
154
minio==7.1.7
16-
mypy-extensions==0.4.3
17-
pathspec==0.9.0
18-
platformdirs==2.5.2
195
psycopg2-binary==2.9.3
20-
pydantic==1.9.0
21-
python-dateutil==2.8.2
226
requests==2.28.1
23-
s3transfer==0.5.2
24-
six==1.16.0
25-
sniffio==1.2.0
267
SQLAlchemy==1.4.36
27-
starlette==0.17.1
28-
tomli==2.0.1
29-
typing_extensions==4.2.0
30-
urllib3==1.26.9
318
uvicorn==0.17.6
32-
GitPython==3.1.27

upgrade_logic/__init__.py

Whitespace-only changes.

upgrade_logic/business_objects/__init__.py

Whitespace-only changes.

upgrade_logic/pre_redesign/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)