PyxiLabs commited on
Commit
3b003cb
·
verified ·
1 Parent(s): 019e0e4

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +26 -0
Dockerfile ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use an official Python runtime as the base image
2
+ FROM python:3.9-slim
3
+
4
+ # Set the working directory in the container
5
+ WORKDIR /app
6
+
7
+ # Install git and other necessary packages
8
+ RUN apt-get update && \
9
+ apt-get install -y git && \
10
+ apt-get clean && \
11
+ rm -rf /var/lib/apt/lists/*
12
+
13
+ # Clone the repository into the /app directory
14
+ RUN git clone https://huggingface.co/datasets/PyxiLab/Pyxilab._.Vocify .
15
+
16
+ # Install the required Python packages
17
+ RUN pip install --no-cache-dir -r requirements.txt
18
+
19
+ # Copy the rest of the application code into the container
20
+ COPY . .
21
+
22
+ # Expose the port that FastAPI will run on
23
+ EXPOSE 7860
24
+
25
+ # Command to run the FastAPI application
26
+ CMD ["uvicorn", "core.app:app", "--host", "0.0.0.0", "--port", "7860"]