rizky nindra commited on
Commit
5ab030d
·
1 Parent(s): 79ced19
.idea/copilot.data.migration.agent.xml ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="AgentMigrationStateService">
4
+ <option name="pendingSessionIds">
5
+ <option value="91eba9fe-1f10-4afd-9b4a-85eaf18892d3" />
6
+ </option>
7
+ <option name="pendingTurns">
8
+ <map>
9
+ <entry key="91eba9fe-1f10-4afd-9b4a-85eaf18892d3">
10
+ <value>
11
+ <set>
12
+ <option value="a44c10aa-2f20-40a7-a2f8-c6a3752d2274" />
13
+ </set>
14
+ </value>
15
+ </entry>
16
+ </map>
17
+ </option>
18
+ </component>
19
+ </project>
Dockerfile CHANGED
@@ -1,21 +1,21 @@
1
- # Use lightweight Python base
2
- FROM python:3.10-slim
3
 
4
- # Set working directory
5
  WORKDIR /app
6
 
 
 
 
 
 
7
  # Copy requirements and install
8
  COPY requirements.txt .
9
- RUN pip install --no-cache-dir -r requirements.txt
10
 
11
  # Copy your Flask app
12
  COPY . .
13
 
14
- # Expose port 5000 (Hugging Face default)
15
  EXPOSE 5000
16
 
17
- # Set environment variable for Flask
18
  ENV PORT=5000
19
 
20
- # Run Flask app
21
- CMD ["python", "app2.py"]
 
1
+ FROM ubuntu:22.04
 
2
 
 
3
  WORKDIR /app
4
 
5
+ # Install Python 3.10 and pip
6
+ RUN apt-get update && \
7
+ apt-get install -y python3.10 python3-pip && \
8
+ apt-get clean
9
+
10
  # Copy requirements and install
11
  COPY requirements.txt .
12
+ RUN python3.10 -m pip install --no-cache-dir -r requirements.txt
13
 
14
  # Copy your Flask app
15
  COPY . .
16
 
 
17
  EXPOSE 5000
18
 
 
19
  ENV PORT=5000
20
 
21
+ CMD ["python3.10", "app2.py"]