Skip to content

Commit

Permalink
Merge pull request #78 from dataforgoodfr/rs/use-streamlit-in-docker
Browse files Browse the repository at this point in the history
fix: need to open streamlit port in order to launch streamlit locally
  • Loading branch information
RonanMorgan authored Feb 20, 2024
2 parents 9842b6d + e3221ef commit 4e03976
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
VERSION ?= 1.0.0

BLOOM_DEV_DOCKER = @docker run --name bloom-test --mount type=bind,source="$(shell pwd)",target=/source_code --env-file ./.env.test --network=bloom_net
BLOOM_DEV_DOCKER = @docker run --name bloom-test --mount type=bind,source="$(shell pwd)",target=/source_code --env-file ./.env.test --network=bloom_net -p 8501:8501
BLOOM_PRODUCTION_DOCKER = @docker run --mount type=bind,source="$(shell pwd)",target=/source_code --env-file ./.env --log-driver json-file --log-opt max-size=10M --log-opt max-file=3 --entrypoint /entrypoint.sh

build:
Expand Down Expand Up @@ -45,3 +45,4 @@ launch-production:

launch-production-app:
$(BLOOM_PRODUCTION_DOCKER) --name bloom-production-app --rm d4g/bloom:${VERSION} /venv/bin/python3 app.py

0 comments on commit 4e03976

Please sign in to comment.