- Популярные видео
- Авто
- Видео-блоги
- ДТП, аварии
- Для маленьких
- Еда, напитки
- Животные
- Закон и право
- Знаменитости
- Игры
- Искусство
- Комедии
- Красота, мода
- Кулинария, рецепты
- Люди
- Мото
- Музыка
- Мультфильмы
- Наука, технологии
- Новости
- Образование
- Политика
- Праздники
- Приколы
- Природа
- Происшествия
- Путешествия
- Развлечения
- Ржач
- Семья
- Сериалы
- Спорт
- Стиль жизни
- ТВ передачи
- Танцы
- Технологии
- Товары
- Ужасы
- Фильмы
- Шоу-бизнес
- Юмор
Day 47: Docker Python App
🐳 Day 47: Docker Python App | 100 Days of DevOps
Welcome to Day 47 of the 100 Days of DevOps series! In this lab, you’ll containerize a Python application and deploy it on a server using Docker.
📌 Lab Objective:
Create a Docker image for a Python app and run it as a container with proper port mapping.
🛠️ Task Requirements:
Create Dockerfile in /python_app
Use any Python base image
Install dependencies from requirements.txt
Expose port 5004
Run server.py using CMD
Build image: nautilus/python-app
Run container: pythonapp_nautilus
Map port 8097 → 5004
💻 Step-by-Step Solution:
🔹 1. Go to Project Directory
cd /python_app
🔹 2. Create Dockerfile
vi Dockerfile
Paste:
FROM python:3.9
WORKDIR /app
COPY src/ /app/
RUN pip install --no-cache-dir -r requirements.txt
EXPOSE 5004
CMD ["python", "server.py"]
🔹 3. Build Docker Image
docker build -t nautilus/python-app .
🔹 4. Run Container
docker run -d \
--name pythonapp_nautilus \
-p 8097:5004 \
nautilus/python-app
🔍 Verify Application:
curl http://localhost:8097/
✅ Application should respond successfully
📚 What You’ll Learn:
Writing Dockerfiles for Python apps
Installing dependencies with pip
Building Docker images
Running containers with port mapping
Testing containerized apps
🌟 Why This Lab Matters:
Containerizing applications is a core DevOps skill, enabling consistent deployments across environments.
🎯 Series: 100 Days of DevOps
Keep leveling up your real-world DevOps skills.
🔔 Follow OtterTech for more hands-on labs and tutorials!
#Docker #Python #DevOps #Containers #Dockerfile #Linux #Automation #100DaysOfDevOps #OtterTech #Day47
Видео Day 47: Docker Python App канала Otter Tech
Welcome to Day 47 of the 100 Days of DevOps series! In this lab, you’ll containerize a Python application and deploy it on a server using Docker.
📌 Lab Objective:
Create a Docker image for a Python app and run it as a container with proper port mapping.
🛠️ Task Requirements:
Create Dockerfile in /python_app
Use any Python base image
Install dependencies from requirements.txt
Expose port 5004
Run server.py using CMD
Build image: nautilus/python-app
Run container: pythonapp_nautilus
Map port 8097 → 5004
💻 Step-by-Step Solution:
🔹 1. Go to Project Directory
cd /python_app
🔹 2. Create Dockerfile
vi Dockerfile
Paste:
FROM python:3.9
WORKDIR /app
COPY src/ /app/
RUN pip install --no-cache-dir -r requirements.txt
EXPOSE 5004
CMD ["python", "server.py"]
🔹 3. Build Docker Image
docker build -t nautilus/python-app .
🔹 4. Run Container
docker run -d \
--name pythonapp_nautilus \
-p 8097:5004 \
nautilus/python-app
🔍 Verify Application:
curl http://localhost:8097/
✅ Application should respond successfully
📚 What You’ll Learn:
Writing Dockerfiles for Python apps
Installing dependencies with pip
Building Docker images
Running containers with port mapping
Testing containerized apps
🌟 Why This Lab Matters:
Containerizing applications is a core DevOps skill, enabling consistent deployments across environments.
🎯 Series: 100 Days of DevOps
Keep leveling up your real-world DevOps skills.
🔔 Follow OtterTech for more hands-on labs and tutorials!
#Docker #Python #DevOps #Containers #Dockerfile #Linux #Automation #100DaysOfDevOps #OtterTech #Day47
Видео Day 47: Docker Python App канала Otter Tech
Комментарии отсутствуют
Информация о видео
6 мая 2026 г. 9:08:30
00:15:37
Другие видео канала




















