Skip to content

vib795/paywall-bypass

Repository files navigation

Flask Application Docker Setup

This project contains a Docker setup for a Flask application. It includes a Dockerfile for building a Docker image and a docker-compose.yml file for easy orchestration of the Docker container.

Prerequisites

Before you begin, ensure you have the following installed on your system:

Project Structure

Here's an overview of the project's directory structure:

/
├── app/
│ ├── app.py # Main Flask application file
│ ├── requirements.txt # Python dependencies
│ └── ... # Other Flask application files
├── Dockerfile # Dockerfile for building the Flask app image
└── docker-compose.yml # Docker Compose configuration file

Dockerfile

The Dockerfile sets up an Ubuntu-based Docker image with Python and other necessary packages. It copies the Flask application into the Docker container and installs the required Python packages.

Docker Compose

The docker-compose.yml file simplifies the process of building and running the Docker container. It maps the container port to a host port and sets up the environment for the Flask application.

Building and Running

Using Docker

To build and run the Flask application using Docker:

  1. Build the Docker image:
docker build -t . paywall-bypass
  1. Run the Docker container:
docker run -p 5000:5000 -it -d paywall-bypass

Using Docker Compose

To build and run the application using Docker Compose:

  1. Start the application:
docker-compose up --build -d
  1. Access the application at http://localhost:5000/.

Stop the application by running:

docker compose down

Contributing

Contributions to this project are welcome. Please fork the repository and open a pull request with your changes or improvements.

License

This project is licensed under the MIT License.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published