-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
36 lines (26 loc) · 798 Bytes
/
Dockerfile
File metadata and controls
36 lines (26 loc) · 798 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
FROM python:3.10-slim
LABEL maintainer="TEC - The Elidoras Codex"
LABEL description="Docker image for TEC AI agents and integrations"
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y \
git \
curl \
wget \
&& rm -rf /var/lib/apt/lists/*
# Copy requirements and install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Create necessary directories if they don't exist
RUN mkdir -p config data logs
# Copy the rest of the application
COPY . .
# Port for Gradio app
EXPOSE 7860
# Environment setup
ENV PYTHONUNBUFFERED=1
ENV PYTHONPATH=/app
# Create empty .env file if it doesn't exist
RUN if [ ! -f config/.env ]; then touch config/.env; fi
# Command to run the application
CMD ["python", "app.py"]