-
Notifications
You must be signed in to change notification settings - Fork 30
/
Dockerfile
26 lines (19 loc) · 862 Bytes
/
Dockerfile
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.3-slim-buster
# Install build dependencies, including gcc
RUN apt-get update \
&& apt-get install -y gcc \
&& rm -rf /var/lib/apt/lists/*
ENV DEBIAN_FRONTEND="noninteractive"
ENV PYTHONUNBUFFERED=1
ENV PYTHONIOENCODING=UTF-8
ENV PYTHONPATH="/app"
# Set the working directory to /app
WORKDIR /app
# Copy only the requirements file to the container and install dependencies
COPY requirements.txt /app/
# Install the dependencies
# RUN python3 -m pip install --no-cache-dir -r requirements.txt
RUN find | grep requirements.txt | xargs -I '{}' python3 -m pip install -r '{}' --extra-index-url https://pkgs.dev.azure.com/quix-analytics/53f7fe95-59fe-4307-b479-2473b96de6d1/_packaging/public/pypi/simple/
# Copy the rest of the application code to the container
COPY . /app
ENTRYPOINT ["streamlit", "run", "main.py", "--server.port=80"]