Обновить Dockerfile
This commit is contained in:
parent
104b7795ee
commit
0a18f2eee2
36
Dockerfile
36
Dockerfile
|
@ -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"]
|
Loading…
Reference in New Issue