File size: 502 Bytes
f6bbbe9
8419546
f6bbbe9
8419546
 
f6bbbe9
8419546
 
f6bbbe9
 
8419546
 
f6bbbe9
 
 
 
 
 
 
 
 
80d491a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM python:3.12

# Create a non-root user for security
RUN useradd -m -u 1000 user

# Set the working directory inside the container
WORKDIR /app

# Copy the requirements.txt file and install dependencies as root
COPY requirements.txt .
RUN pip install --no-cache-dir --upgrade -r requirements.txt

# Copy the application code (including app.py and resume.pdf)
COPY . .

# Switch to the non-root user
USER user

# Expose the port that the application will run on
EXPOSE 7860

CMD ["python", "app.py"]