Sobes.tech
Назад к вопросам
Middle
1

Write a Dockerfile for a Python application that does the following: - Uses the latest Python image - Sets the working directory to /app - Copies the current directory contents into the container - Installs the dependencies listed in requirements.txt - Exposes port 8000 - Runs the application using the command: python app.py

Компании, где спрашивали
СБЕРСБЕР

Ответ от нейросети

sobes.tech AI

Dockerfile FROM python:latest

WORKDIR /app

COPY . /app

RUN pip install --no-cache-dir -r requirements.txt

EXPOSE 8000

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