Обновить Dockerfile

This commit is contained in:
Xanders25 2024-12-16 18:33:45 +02:00
parent 104b7795ee
commit 0a18f2eee2
1 changed files with 18 additions and 18 deletions

View File

@ -1,18 +1,18 @@
# Use the official Python image with a specific version # Use the official Python image with a specific version
FROM python:3.10-slim FROM python:3.10-slim
# Set the working directory # Set the working directory
WORKDIR /app WORKDIR /app
# Copy requirements and install them (if there were any) # Copy requirements and install them (if there were any)
COPY requirements.txt /app/ COPY requirements.txt /app/
RUN pip install -r requirements.txt RUN pip install -r requirements.txt
# Copy the rest of the application code # Copy the rest of the application code
COPY . /app COPY . /app
# Expose the port the app runs on # Expose the port the app runs on
EXPOSE 5000 EXPOSE 5000
# Command to run the application # Command to run the application
CMD ["python", "app.py"] CMD ["python", "app/app.py"]