-
Notifications
You must be signed in to change notification settings - Fork 1
Deploy by Docker
This Dockerfile uses the official php:7.4-apache
image as the base image, and installs the necessary PHP extensions and dependencies required to run the file browser. It then copies the contents of the current directory to the /var/www/html/
directory in the container, which is where the Apache web server looks for files to serve.
You can build a Docker image by running the docker build
command in the same directory as the Dockerfile. For example, if you saved the Dockerfile in a directory called "my-app", you can build the Docker image by running:
cd my-app
docker build -t my-app-image .
This will build a Docker image with the tag "my-app-image" using the Dockerfile in the current directory. You can then run a container using this image by running:
When you build and run the container using this Dockerfile, the file browser should be accessible on port 80 of the container's IP address or hostname.
docker run -p 8080:80 my-app-image
This will start a container using the "my-app-image" image and map port 80 in the container to port 8080 on the host machine. You can then access the application in your web browser by navigating to localhost:8080.