-
Notifications
You must be signed in to change notification settings - Fork 212
/
Copy pathDockerfile
61 lines (41 loc) · 1.52 KB
/
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# Project : Screenipy
# Author : Pranjal Joshi
# Created : 17/08/2023
# Description : Dockerfile to build Screeni-py image for GUI release
# FROM ubuntu:latest as base
# FROM tensorflow/tensorflow:2.9.2 as base
# FROM python:3.10.6-slim as base
FROM python:3.11.6-slim-bookworm as base
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y software-properties-common
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
git \
vim nano wget curl \
&& \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
ENV LANG C.UTF-8
ADD . /opt/program/
ENV PATH="/opt/program:${PATH}"
WORKDIR /opt/program
RUN chmod +x *
# Removed build ta-lib from source as we're using [pip3 install TA-Lib-Precompiled] for faster docker build
# WORKDIR /opt/program/.github/dependencies/
# RUN tar -xzf ta-lib-0.4.0-src.tar.gz
# WORKDIR /opt/program/.github/dependencies/ta-lib/
# RUN ./configure --prefix=/usr --build=$(uname -m)-unknown-linux-gnu
# RUN make
# RUN make install
WORKDIR /opt/program/
RUN python3 -m pip install --upgrade pip
RUN pip3 install -r "requirements.txt"
RUN pip3 install --no-deps advanced-ta
ENV PYTHONUNBUFFERED=TRUE
ENV PYTHONDONTWRITEBYTECODE=TRUE
ENV SCREENIPY_DOCKER = TRUE
ENV SCREENIPY_GUI = TRUE
EXPOSE 8501
HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
WORKDIR /opt/program/src/
ENTRYPOINT ["streamlit", "run", "streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0"]