Prathamesh Sable commited on
Commit
fe2dbd2
·
1 Parent(s): 13fb29e

docker basic setup

Browse files
Files changed (2) hide show
  1. .dockerignore +15 -0
  2. Dockerfile +23 -0
.dockerignore ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ __pycache__
2
+ *.pyc
3
+ *.pyo
4
+ *.pyd
5
+ *.db
6
+ *.sqlite3
7
+ .env
8
+ venv/
9
+ .vscode
10
+ chroma_db
11
+ chroma
12
+ log.txt
13
+ /trash
14
+ uploads/
15
+
Dockerfile ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # base image
2
+ FROM python:3.9
3
+
4
+ # user creation
5
+ RUN useradd -m -u 1000 user
6
+ USER user
7
+ ENV PATH="/home/user/.local/bin:$PATH"
8
+
9
+ # set working directory
10
+ WORKDIR /app
11
+
12
+ # install requirements
13
+ COPY --chown=user ./requirements.txt requirements.txt
14
+ RUN pip install --no-cache-dir --upgrade -r requirements.txt
15
+
16
+ # copy project
17
+ COPY --chown=user . /app
18
+
19
+ # expose port
20
+ EXPOSE 7860
21
+
22
+ # run server
23
+ CMD ["gunicorn","MultiFileChatting.wsgi:application","--bind","0.0.0.0:7860"]