This is for Our Dressingnity E-Commerce Site.
See Repo: https://github.com/Prakash4844/Dressingnity-Ecommerce-Website
run following commands in terminal:
Prerequisites: Docker must be installed in your system
$ docker pull prakash4844/dressingnity:latest
$ docker run -p 8080:8080 prakash4844/dressingnity:latest
open localhost:8080
in browser and profit!!!
run following commands in terminal:
Prerequisites: Docker, git must be installed in your system
$ git clone https://github.com/Prakash4844/Dressingnity-Ecommerce-Website.git
$ cd Dressingnity-Ecommerce-Website'
$ docker build -t dressingnity:latest .
$ docker run -p 8080:8080 dressingnity:latest
open localhost:8080
in browser and profit!!!
Checkout Static version here: Dressingnity Static Site is built on HTML, CSS, Bootstrap, JS
Checkout Login Support with Database version here: Dressingnity
This Version use all the technology of Static Site with PHP and SQLite for Backend.
This Dockerfile is used to build a Docker image for a lightweight container containing Nginx, PHP, and SQLite. It sets up an environment to host a web application. Let's break down the Dockerfile:
-
FROM bravecheng/php-nginx-sqlite:latest
: This line sets the base image to "bravecheng/php-nginx-sqlite" with the "latest" tag. It's likely a pre-configured image containing PHP, Nginx, and SQLite for Alpine Linux. -
LABEL
statements: These lines provide metadata about the image, including author, maintainer, and description. -
WORKDIR /var/www/html
: This line sets the working directory within the container to "/var/www/html". -
USER nobody
: The subsequent commands are executed using the "nobody" user, switching from the root user for security reasons. -
COPY --chown=nobody . /var/www/html/
: This line copies the contents of the current directory into the container's "/var/www/html/" directory, ensuring the "nobody" user owns the copied files. -
EXPOSE 8080
andEXPOSE 80
: These lines indicate that the container will expose ports 8080 and 80 to the host system. -
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"]
: This is the command that will be executed when the container starts. It launches the supervisord process with a specific configuration file, which likely manages the Nginx and PHP-FPM processes.
Complexity Level: This Dockerfile is of moderate complexity. It includes multiple stages, labels, environment setup, user switching, copying files, exposing ports, and specifying the command to run. While not extremely complex, it covers various Dockerfile concepts and commands that a developer should understand to work with Docker effectively. It's suitable for intermediate users familiar with Docker basics and looking to build images with additional features like user switching and command customization.