maltose1 commited on
Commit
65d4c2f
·
verified ·
1 Parent(s): fe507dd

Upload 2 files

Browse files
Files changed (2) hide show
  1. Dockerfile +23 -0
  2. requirements.txt +5 -0
Dockerfile ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use an official Python runtime as a parent image
2
+ FROM python:3.9-slim
3
+
4
+ # Set the working directory in the container
5
+ WORKDIR /app
6
+
7
+ # Copy the current directory contents into the container at /app
8
+ COPY . /app
9
+
10
+ # Install any needed packages specified in requirements.txt
11
+ RUN pip install --no-cache-dir -r requirements.txt
12
+
13
+ # Make port 1547 available to the world outside this container
14
+ EXPOSE 1547
15
+
16
+ # Define environment variable
17
+ ENV PYTHONUNBUFFERED=1
18
+
19
+ # Create cookie directory
20
+ RUN mkdir -p cookie
21
+
22
+ # Run tts-server.py when the container launches
23
+ CMD ["python", "tts-server.py"]
requirements.txt ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ fastapi
2
+ uvicorn
3
+ aiohttp
4
+ websockets
5
+ pydantic