Skip to content

Commit

Permalink
Merge pull request #123 from Bsm-B/main
Browse files Browse the repository at this point in the history
Run App Via Docker
  • Loading branch information
chekoduadarsh authored Aug 23, 2023
2 parents be2c420 + 16001b2 commit fd9dd9a
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,23 @@ git clone https://github.com/chekoduadarsh/BlocklyML
After cloning the repo you can either follow the Flask Method


# Running the App Using Docker

If you've cloned the project and want to build the image, follow these steps:

1.Open your terminal and navigate to the project directory.

2.Run the following command to build the Docker image:

```shell
docker build . -t blocklyml/demo
```
Once the image is built, you can launch the app by executing the following command:

```shell
docker run -ti -p5000:5000 blockly_ml/demo
```
This will start the app, and you'll be able to access it by opening your web browser and navigating to `http://localhost:5000`
### Flask Method

Install the requirements from `requirements.txt` with the following command
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ itsdangerous==2.1.2
Jinja2==3.1.1
kiwisolver==1.4.0
MarkupSafe==2.1.1
numpy==1.19.0
numpy==1.20.0
packaging==21.3
pandas==1.3.5
plotly==5.6.0
Expand Down

0 comments on commit fd9dd9a

Please sign in to comment.