-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdockerfile
More file actions
22 lines (18 loc) · 769 Bytes
/
dockerfile
File metadata and controls
22 lines (18 loc) · 769 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Dokerfile to create the container image for the DCA app
FROM python:3.14-slim
LABEL maintainer="Wolf Paulus <wolf@paulus.com>"
RUN apt-get update && \
apt-get install -yq tzdata && \
ln -fs /usr/share/zoneinfo/America/Phoenix /etc/localtime && \
dpkg-reconfigure -f noninteractive tzdata
COPY . /dca
RUN pip install --no-cache-dir --upgrade -r /dca/requirements.txt
RUN chmod +x /dca/healthcheck.sh
WORKDIR /dca/
EXPOSE 8000
# prevents Python from writing .pyc files to disk
# ensures that the python output is sent straight to terminal (e.g. the container log) without being first buffered
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
ENV PYTHONPATH=/dca
CMD ["python3.14", "-m", "streamlit", "run", "--server.port", "8000", "src/app.py"]