Spaces:
Sleeping
Sleeping
Ezhil
commited on
Commit
·
2e22948
1
Parent(s):
b0d288f
changes
Browse files- Dockerfile +3 -2
Dockerfile
CHANGED
|
@@ -1,14 +1,15 @@
|
|
| 1 |
# Use an official Python runtime as a parent image
|
| 2 |
-
FROM python:3.11
|
| 3 |
|
| 4 |
# Set the working directory in the container
|
| 5 |
WORKDIR /app
|
| 6 |
|
|
|
|
| 7 |
# Ensure logs directory exists and set proper permissions
|
| 8 |
RUN mkdir -p /app/logs && chmod -R 777 /app/logs
|
| 9 |
|
| 10 |
# Copy the application files
|
| 11 |
-
|
| 12 |
|
| 13 |
# Install dependencies
|
| 14 |
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
| 1 |
# Use an official Python runtime as a parent image
|
| 2 |
+
FROM python:3.11-slim
|
| 3 |
|
| 4 |
# Set the working directory in the container
|
| 5 |
WORKDIR /app
|
| 6 |
|
| 7 |
+
COPY . /app
|
| 8 |
# Ensure logs directory exists and set proper permissions
|
| 9 |
RUN mkdir -p /app/logs && chmod -R 777 /app/logs
|
| 10 |
|
| 11 |
# Copy the application files
|
| 12 |
+
|
| 13 |
|
| 14 |
# Install dependencies
|
| 15 |
RUN pip install --no-cache-dir -r requirements.txt
|