Skip to content

Commit

Permalink
wip - Docker entrypoint updated
Browse files Browse the repository at this point in the history
  • Loading branch information
pranjal-joshi committed Oct 8, 2023
1 parent d77f8aa commit e9e6c3b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ ADD . /opt/program/

ENV PATH="/opt/program:${PATH}"

RUN sudo echo "185.199.108.133 raw.githubusercontent.com" >> /etc/hosts
RUN sudo echo "nameserver 8.8.8.8" >> /etc/resolv.conf

WORKDIR /opt/program

RUN chmod +x *
Expand Down Expand Up @@ -59,4 +56,4 @@ EXPOSE 8501
HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health

WORKDIR /opt/program/src/
ENTRYPOINT ["streamlit", "run", "streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0"]
ENTRYPOINT ["echo 'nameserver 8.8.8.8' > /etc/resolv.conf", "&&", "echo '185.199.108.133 raw.githubusercontent.com' >> /etc/hosts", "&&", "streamlit", "run", "streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0"]

0 comments on commit e9e6c3b

Please sign in to comment.