Skip to content

Commit b2967fa

Browse files
committed
change ports
1 parent 152593e commit b2967fa

File tree

2 files changed

+22
-2
lines changed

2 files changed

+22
-2
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ RUN apt update
66
RUN apt install -y git
77
RUN apt-get install -y libglib2.0-0
88
RUN pip install git+https://github.com/CVxTz/FastImageClassification
9-
EXPOSE 80
9+
EXPOSE 8080
1010

11-
ENTRYPOINT uvicorn main:app --host 0.0.0.0 --port 80 --workers 1
11+
ENTRYPOINT uvicorn main:app --host 0.0.0.0 --port 8080 --workers 1

app.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
runtime: custom
2+
env: flex
3+
service: default
4+
threadsafe: yes
5+
6+
network:
7+
forwarded_ports:
8+
- 80:8080
9+
10+
automatic_scaling:
11+
min_num_instances: 1
12+
max_num_instances: 10
13+
cool_down_period_sec: 120 # default value
14+
cpu_utilization:
15+
target_utilization: 0.5
16+
17+
resources:
18+
cpu: 1
19+
memory_gb: 4
20+
disk_size_gb: 20

0 commit comments

Comments
 (0)