akash015 commited on
Commit
ff0349d
·
verified ·
1 Parent(s): ce2c30d

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +23 -0
Dockerfile ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use the official Python 3.10 image from the Docker Hub
2
+ FROM python:3.10
3
+
4
+ # Create a new user and set permissions
5
+ RUN useradd -m -u 1000 user
6
+ USER user
7
+
8
+ # Set environment variables
9
+ ENV HOME=/home/user \
10
+ PATH=/home/user/.local/bin:$PATH
11
+
12
+ # Set the working directory
13
+ WORKDIR $HOME/app
14
+
15
+ # Copy the requirements file and install dependencies
16
+ COPY --chown=user requirements.txt $HOME/app/requirements.txt
17
+ RUN pip install --no-cache-dir -r requirements.txt
18
+
19
+ # Copy the rest of the application code
20
+ COPY --chown=user . .
21
+
22
+ # Define the command to run your Chainlit application
23
+ CMD ["chainlit", "run", "app.py", "--port", "7860"]