TinyCl commited on
Commit
d46ba64
·
verified ·
1 Parent(s): 129bdd7

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -28
Dockerfile CHANGED
@@ -1,28 +1 @@
1
- FROM python:3.11-slim
2
-
3
- WORKDIR /app
4
-
5
- # Install system dependencies
6
- RUN apt-get update && apt-get install -y \
7
- build-essential \
8
- curl \
9
- libcurl4-openssl-dev \
10
- libssl-dev \
11
- && rm -rf /var/lib/apt/lists/*
12
-
13
- # Copy requirements first to leverage Docker cache
14
- COPY requirements.txt .
15
- RUN pip install --no-cache-dir -r requirements.txt
16
-
17
- # Copy the rest of the application
18
- COPY . .
19
-
20
- # Expose the port the app runs on
21
- EXPOSE 7860
22
-
23
- # Environment variables with defaults
24
- ENV OPENAI_API_KEY=None
25
- ENV ENVIRONMENT="production"
26
-
27
- # Command to run the application
28
- CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
 
1
+ FROM ghcr.io/hzruo/akash2api:latest