Anupam007 commited on
Commit
4ad7f64
·
verified ·
1 Parent(s): f8bf753

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +18 -0
Dockerfile ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM docker.io/library/python:3.10
2
+
3
+ RUN apt-get update && apt-get install -y fakeroot && mv /usr/bin/apt-get /usr/bin/.apt-get && echo '#!/usr/bin/env sh\nfakeroot /usr/bin/.apt-get $@' > /usr/bin/apt-get && chmod +x /usr/bin/apt-get && rm -rf /var/lib/apt/lists/* && useradd -m -u 1000 user
4
+
5
+ # Set working directory
6
+ WORKDIR /app
7
+
8
+ # Copy requirements file
9
+ COPY requirements.txt .
10
+
11
+ # Install dependencies and capture output
12
+ RUN pip install -r requirements.txt
13
+
14
+ # Copy the rest of the application
15
+ COPY . .
16
+
17
+ # Command to run the application
18
+ CMD ["python", "app.py"] # Replace app.py with name of entrypoint of app