File size: 553 Bytes
6b6c253
8ee64bf
640478e
7f9ffc6
 
b13146d
7f9ffc6
640478e
a86869b
 
fedccea
ccb01ed
fedccea
ccb01ed
 
84ea1fa
7592082
ccb01ed
fedccea
ccb01ed
 
fedccea
ccb01ed
0e96719
fedccea
0a8885b
ccb01ed
22ce392
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Base image
FROM python:3.9

# Set the cache location
ENV TRANSFORMERS_CACHE /app/.cache
RUN mkdir -p /app/.cache

# Install essential compilers and build tools
RUN apt-get update && apt-get install -y build-essential g++ gcc gfortran


WORKDIR /app

# Install dependencies
COPY requirements.txt ./
COPY app.py ./
COPY htmlTemplates.py ./ 
RUN pip install -r requirements.txt

# Copy your code
COPY . ./  

# Expose the port used by Streamlit
EXPOSE 7860

USER root
# Start the Streamlit app
CMD ["streamlit", "run", "app.py", "--server.port", "7860"]