DrTech commited on
Commit
7651713
·
verified ·
1 Parent(s): 2c01d49

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +13 -15
Dockerfile CHANGED
@@ -1,24 +1,22 @@
1
- # Use an official Python runtime as a parent image
2
- FROM python:3.10-slim
3
 
4
- # This copies everything in the current directory to the /app directory in the container
5
- COPY . /app
6
 
7
- # Set the working directory in the container to /app
8
  WORKDIR /app
9
 
10
- # Install any needed packages specified in requirements.txt
11
- RUN pip install -r requirements.txt
 
 
 
 
12
 
13
- # Make port 8501 available to the world outside this container
14
- EXPOSE 8501
15
 
16
- RUN mkdir ~/.streamlit
17
 
18
- RUN cp config.toml ~/.streamlit/config.toml
19
 
20
- RUN cp credentials.toml ~/.streamlit/credentials.toml
21
 
22
- ENTRYPOINT ["streamlit", "run", "streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0"]
23
- # Run app3.py when the container launches
24
- CMD [ "app3.py"]
 
1
+ # app/Dockerfile
 
2
 
3
+ FROM python:3.10-slim
 
4
 
 
5
  WORKDIR /app
6
 
7
+ RUN apt-get update && apt-get install -y \
8
+ build-essential \
9
+ curl \
10
+ software-properties-common \
11
+ git \
12
+ && rm -rf /var/lib/apt/lists/*
13
 
14
+ RUN git clone https://github.com/MSimsek07/ymgk_docker.git .
 
15
 
16
+ RUN pip3 install -r requirements.txt
17
 
18
+ EXPOSE 8501
19
 
20
+ HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
21
 
22
+ ENTRYPOINT ["streamlit", "run", "app3.py", "--server.port=8501", "--server.address=0.0.0.0"]