Skip to content

Commit fd9dd9a

Browse files
Merge pull request #123 from Bsm-B/main
Run App Via Docker
2 parents be2c420 + 16001b2 commit fd9dd9a

2 files changed

Lines changed: 18 additions & 1 deletion

File tree

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,23 @@ git clone https://github.com/chekoduadarsh/BlocklyML
5050
After cloning the repo you can either follow the Flask Method
5151

5252

53+
# Running the App Using Docker
54+
55+
If you've cloned the project and want to build the image, follow these steps:
56+
57+
1.Open your terminal and navigate to the project directory.
58+
59+
2.Run the following command to build the Docker image:
60+
61+
```shell
62+
docker build . -t blocklyml/demo
63+
```
64+
Once the image is built, you can launch the app by executing the following command:
65+
66+
```shell
67+
docker run -ti -p5000:5000 blockly_ml/demo
68+
```
69+
This will start the app, and you'll be able to access it by opening your web browser and navigating to `http://localhost:5000`
5370
### Flask Method
5471

5572
Install the requirements from `requirements.txt` with the following command

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ itsdangerous==2.1.2
1616
Jinja2==3.1.1
1717
kiwisolver==1.4.0
1818
MarkupSafe==2.1.1
19-
numpy==1.19.0
19+
numpy==1.20.0
2020
packaging==21.3
2121
pandas==1.3.5
2222
plotly==5.6.0

0 commit comments

Comments
 (0)