File size: 1,205 Bytes
c2adef3 8fb7a9e c2adef3 8fb7a9e c2adef3 8fb7a9e |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 |
---
title: Bing
emoji: 🐨
colorFrom: green
colorTo: blue
sdk: docker
pinned: false
license: mit
app_port: 5000
---
# Flask Redirect App
This simple Flask application redirects any requests to the root URL to https://dongsiqie.me.
## Pre-requisites
Make sure you have Docker installed on your system. You can download it from [Docker's official website](https://docker.com).
## Build Instructions
To build the Docker image for this application, run the following command:
```bash
docker build -t flask-redirect-app .
```
This will use the `Dockerfile` in the current directory to build an image named `flask-redirect-app`.
## Running the Application
Once the image has been built, you can start a container with:
```bash
docker run -dp 5000:5000 flask-redirect-app
```
The application will be accessible at `http://localhost:5000` and will redirect to https://dongsiqie.me.
## Stopping the Application
To stop the running container, first list all running containers with:
```bash
docker ps
```
Find the container running the `flask-redirect-app` and note the CONTAINER ID. Then run:
```bash
docker stop CONTAINER_ID
```
Replace `CONTAINER_ID` with the actual ID of your container.
|