File size: 650 Bytes
fde904e
e80367c
fde904e
e80367c
fde904e
 
e80367c
 
fde904e
e80367c
fde904e
e80367c
fde904e
 
 
e80367c
fde904e
 
e80367c
fde904e
 
05fe8ad
 
fde904e
05fe8ad
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
FROM python:3.10-slim

WORKDIR /home/app

RUN apt-get update \
    && apt-get install -y --no-install-recommends nano unzip curl \
    && rm -rf /var/lib/apt/lists/*

COPY . . 

RUN curl -fsSL https://get.deta.dev/cli.sh | sh

RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
RUN unzip awscliv2.zip
RUN ./aws/install

COPY requirements.txt /dependencies/requirements.txt
RUN pip install -r /dependencies/requirements.txt

# Environment variables will be passed at runtime via docker run -e flags
# No need to set them here in the Dockerfile
# Expose port
EXPOSE 7860

CMD streamlit run app.py --server.port 7860