anugrah55 commited on
Commit
7866ce6
·
verified ·
1 Parent(s): ee14542

Upload Dockerfile with huggingface_hub

Browse files
Files changed (1) hide show
  1. Dockerfile +19 -0
Dockerfile ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use a standard Python 3.9 image
2
+ FROM python:3.9-slim
3
+
4
+ # Set the working directory
5
+ WORKDIR /app
6
+
7
+ # Copy the environment files into the container
8
+ COPY ./opensleuth_env /app/opensleuth_env
9
+ COPY ./server.py /app/
10
+ COPY ./requirements.txt /app/
11
+
12
+ # Install dependencies
13
+ RUN pip install --no-cache-dir -r requirements.txt
14
+
15
+ # Expose the port the app runs on
16
+ EXPOSE 8000
17
+
18
+ # Run the application
19
+ CMD ["uvicorn", "server:app", "--host", "0.0.0.0", "--port", "8000"]