kevanthonyP commited on
Commit
a18a122
·
verified ·
1 Parent(s): d375b71

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +28 -0
Dockerfile ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.11-slim
2
+
3
+ LABEL maintainer="Kevin Pamisetti"
4
+ LABEL description="IT Support Triage — OpenEnv Environment"
5
+ LABEL version="1.0.0"
6
+
7
+ WORKDIR /app
8
+
9
+ RUN apt-get update && apt-get install -y --no-install-recommends \
10
+ curl \
11
+ && rm -rf /var/lib/apt/lists/*
12
+
13
+ COPY requirements.txt .
14
+ RUN pip install --no-cache-dir -r requirements.txt
15
+
16
+ COPY env_models.py .
17
+ COPY env_tasks.py .
18
+ COPY env_core.py .
19
+ COPY server.py .
20
+ COPY inference.py .
21
+ COPY openenv.yaml .
22
+
23
+ EXPOSE 7860
24
+
25
+ HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
26
+ CMD curl -f http://localhost:7860/health || exit 1
27
+
28
+ CMD ["python3", "server.py"]