Logo

dev-resources.site

for different kinds of informations.

How to Create Docker Image for HTTPD service, including portfolio web site.

Published at
3/22/2024
Categories
docker
dockerfile
dockerimage
dockerhub
Author
sanchithaudana
Author
14 person written this
sanchithaudana
open
How to Create Docker Image for HTTPD service, including portfolio web site.

01. Create a Dockerfile inside your portfolio web site project folder.

that file name must be Dockerfile

02. Use the Base image as HTTPD
create the "Dockerfile" like below.

Image description

03. After create Dockerfile you can run below command to build the docker image

docker build -t imageName .
Enter fullscreen mode Exit fullscreen mode

04. After create docker image you can use to create docker container using below command.

docker run -d --name containerName -p 8080:80 imageName
Enter fullscreen mode Exit fullscreen mode

You can access the website using http://localhost:8080

dockerfile Article's
30 articles in total
Favicon
Docker 101: A Guide to Docker Commands, Terminologies & Dockerfile
Favicon
Understanding Docker Compose File Format: Structure, Options, and Best Practices
Favicon
Mastering Dockerfile Syntax: A Complete Guide for Creating Custom Docker Images
Favicon
Understanding Docker Image Layers: Best Practices for Building Efficient Docker Images
Favicon
Best Practices for Writing Efficient and Maintainable Dockerfiles
Favicon
Dockerfile Explain
Favicon
Getting Started with Docker.
Favicon
Building and Deploying a Dockerized Web Application
Favicon
Dive Into Docker: A Hands-On Lab For Getting Started
Favicon
Dockerfile for PHP Laravel
Favicon
Container Files and Dockerfiles: A Comprehensive Guide
Favicon
Understanding Dockerfile: The Blueprint of Docker Containers and Images
Favicon
How to Create Docker Image for HTTPD service, including portfolio web site.
Favicon
Optimized Keycloak build
Favicon
Fun with Avatars: Containerize the app for deployment & distribution | Part. 2
Favicon
The Comprehensive Guide to Dockerfiles
Favicon
[Go Tour ] 2. Optimize Dockerfile
Favicon
Docker II: 5 tópicos para iniciar o mais rápido possível
Favicon
Mastering Dockerfile ️🐳: 10 Advanced Tips and Best Practices ⚔
Favicon
hadolint - Dockerfile linter
Favicon
Dockerfile
Favicon
Creating a GitHub Action for a Docker Image
Favicon
🐳 Boost Your Docker Workflow: Introducing Docker Init for Python Developers 🚀
Favicon
3 Tips to Improve Your Dockerfile Build Time
Favicon
Abrindo mares: Dockerfile, o que precisamos saber!
Favicon
Failed to Read Dockerfile
Favicon
Why i use a smaller docker image
Favicon
Differences Between a DockerFile, Docker Image, and Docker Container
Favicon
Clear up the confusions with Dockerfile instructions
Favicon
How to Create a Dockerfile?

Featured ones: