BUG REPORT: Space keeps building after the docker file finish

#4
by yonikremer - opened

When i am running the space, The docker file is running fine but the space keeps running even after the docker file finishes.

The docker file:

FROM bitnami/pytorch

RUN mkdir --mode 777 /app/my_streamlit_app
WORKDIR /app/my_stramlit_app

COPY ./requirements.txt /app/my_streamlit_app/requirements.txt

RUN pip install --no-cache-dir -r /app/my_streamlit_app/requirements.txt

RUN mkdir --mode 777 "/app/my_streamlit_app/.cache/"
RUN mkdir --mode 777 "/app/my_streamlit_app/.cache/huggingface/"
ENV HUGGINGFACE_HUB_CACHE="/app/my_streamlit_app/.cache/huggingface"
RUN mkdir --mode 777 "/app/my_streamlit_app/.cache/transformers/"
ENV TRANSFORMERS_CACHE="/app/my_streamlit_app/.cache/transformers"

COPY . /app/my_streamlit_app/

CMD ["streamlit", "run", "/app/my_streamlit_app/app.py"]

Build Logs:

===== Build Queued at 2023-03-11 08:30:35 / Commit SHA: 9194adc =====

--> FROM docker.io/bitnami/pytorch@sha256:2059cdc8c77c88c6911f84b00697b94ab902a5b59deba575bebd684b2283a02c
DONE 0.0s

--> RUN mkdir --mode 777 "/app/my_streamlit_app/.cache/huggingface/"
CACHED

--> RUN mkdir --mode 777 "/app/my_streamlit_app/.cache/"
CACHED

--> COPY ./requirements.txt /app/my_streamlit_app/requirements.txt
CACHED

--> WORKDIR /app/my_stramlit_app
CACHED

--> RUN pip install --no-cache-dir -r /app/my_streamlit_app/requirements.txt
CACHED

--> RUN mkdir --mode 777 /app/my_streamlit_app
CACHED

--> RUN mkdir --mode 777 "/app/my_streamlit_app/.cache/transformers/"
DONE 15.3s

--> COPY . /app/my_streamlit_app/
DONE 13.8s

--> Pushing image
DONE 0.8s

--> Exporting cache
DONE 0.4s

===== Application Startup at 2023-03-11 08:31:12 =====

 08:31:16.38 
 08:31:16.38 Welcome to the Bitnami pytorch container
 08:31:16.38 Subscribe to project updates by watching https://github.com/bitnami/containers
 08:31:16.38 Submit issues and feature requests at https://github.com/bitnami/containers/issues
 08:31:16.38 


Collecting usage statistics. To deactivate, set browser.gatherUsageStats to False.


  You can now view your Streamlit app in your browser.

  Network URL: http://10.19.75.51:8501
  External URL: http://3.223.72.184:8501

Container logs:

 08:31:16.38 
 08:31:16.38 Welcome to the Bitnami pytorch container
 08:31:16.38 Subscribe to project updates by watching https://github.com/bitnami/containers
 08:31:16.38 Submit issues and feature requests at https://github.com/bitnami/containers/issues
 08:31:16.38 


Collecting usage statistics. To deactivate, set browser.gatherUsageStats to False.


  You can now view your Streamlit app in your browser.

  Network URL: http://10.19.75.51:8501
  External URL: http://3.223.72.184:8501

Turns out I was running the app in the wrong port

yonikremer changed discussion status to closed

Sign up or log in to comment