File size: 612 Bytes
8dc61da
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# 
FROM python:3.9-slim

# This is directory inside container
WORKDIR /cont_transmiim

# Copy requirements file
COPY ./requirements.txt /cont_transmiim/requirements.txt

# 
RUN pip3 install --no-cache-dir --upgrade -r /cont_transmiim/requirements.txt

# Copy remaining parts of code to container
COPY ./src /cont_transmiim/src

# Expose this specific port to web traffic
EXPOSE 8501

# Telling docker on how to test if a container is still working
HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health

ENTRYPOINT [ "streamlit", "run", "src/main.py", "--server.port=8501", "--server.address=0.0.0.0" ]