Athipan01 commited on
Commit
637fe38
·
verified ·
1 Parent(s): 6980efe

Delete Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +0 -38
Dockerfile DELETED
@@ -1,38 +0,0 @@
1
- FROM python:3.10-slim
2
-
3
- # ติดตั้ง dependencies ที่จำเป็น
4
- RUN apt-get update && \
5
- apt-get install -y --no-install-recommends git curl && \
6
- rm -rf /var/lib/apt/lists/*
7
-
8
- # Pre-upgrade pip เพื่อ clear notice
9
- RUN pip install --no-cache-dir --upgrade pip
10
-
11
- # กำหนด working directory
12
- WORKDIR /app
13
-
14
- # เปิดพอร์ต
15
- ENV PORT=7860
16
- EXPOSE 7860
17
-
18
- # Environment variables (สำหรับ plain PostgreSQL จาก log)
19
- ENV DATABASE_URL=""
20
- ENV DB_USER=""
21
- ENV DB_PASSWORD=""
22
- ENV DB_HOST=""
23
- ENV DB_PORT=""
24
- ENV DB_NAME=""
25
-
26
- # Pre-install asyncpg เพื่อ fix async driver error ใน SQLAlchemy/Alembic (global)
27
- RUN pip install --no-cache-dir asyncpg
28
-
29
- # Healthcheck (assume มี /health endpoint)
30
- HEALTHCHECK --interval=30s --timeout=3s --start-period=30s --retries=3 \
31
- CMD curl -f http://127.0.0.1:7860/health || exit 1
32
-
33
- # คัดลอก start script
34
- COPY start.sh /app/start.sh
35
- RUN chmod +x /app/start.sh
36
-
37
- # คำสั่งเริ่มต้น
38
- CMD ["/app/start.sh"]