gotta archive this lmao
This commit is contained in:
32
Dockerfile
Normal file → Executable file
32
Dockerfile
Normal file → Executable file
@@ -1,17 +1,17 @@
|
||||
# Use the official Python image from the Docker Hub
|
||||
FROM python:3.12-slim
|
||||
|
||||
# Set working directory in the container
|
||||
WORKDIR /app
|
||||
|
||||
# Copy requirements.txt
|
||||
COPY requirements.txt .
|
||||
|
||||
# Install the required packages
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
# Copy the rest of the application files
|
||||
COPY . .
|
||||
|
||||
# Command to run the application
|
||||
# Use the official Python image from the Docker Hub
|
||||
FROM python:3.12-slim
|
||||
|
||||
# Set working directory in the container
|
||||
WORKDIR /app
|
||||
|
||||
# Copy requirements.txt
|
||||
COPY requirements.txt .
|
||||
|
||||
# Install the required packages
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
# Copy the rest of the application files
|
||||
COPY . .
|
||||
|
||||
# Command to run the application
|
||||
CMD ["python", "app.py"]
|
||||
Reference in New Issue
Block a user