memex-in commited on
Commit
f9050af
·
verified ·
1 Parent(s): 84c35be

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +16 -0
Dockerfile ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim
2
+
3
+ # Install dependencies
4
+ RUN apt-get update && apt-get install -y nginx
5
+ WORKDIR /app
6
+
7
+ COPY requirements.txt main.py nginx.conf ./
8
+ RUN pip install -r requirements.txt
9
+
10
+ # Remove default Nginx site, add ours
11
+ RUN rm /etc/nginx/sites-enabled/default
12
+ COPY nginx.conf /etc/nginx/sites-enabled/
13
+
14
+ EXPOSE 7860
15
+
16
+ CMD ["sh", "-c", "service nginx start && uvicorn main:app --host 0.0.0.0 --port 8000"]