-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
34 lines (28 loc) · 918 Bytes
/
Copy pathDockerfile
File metadata and controls
34 lines (28 loc) · 918 Bytes
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
FROM python:3.12-slim-bookworm
# Install necessary libs
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
gcc \
wget \
tzdata \
libgomp1 && \
rm -rf /var/lib/apt/lists/*
# Install requirements
COPY requirements.txt .
RUN pip install -r requirements.txt
# Install TA-Lib
# RUN wget https://github.com/ta-lib/ta-lib/releases/download/v0.6.4/ta-lib-0.6.4-src.tar.gz && \
# tar -xvzf ta-lib-0.6.4-src.tar.gz && \
# cd ta-lib/ && \
# ./configure --prefix=/usr && \
# make && \
# make install && \
# pip install TA-Lib==0.6.4
RUN wget https://github.com/ta-lib/ta-lib/releases/download/v0.6.4/ta-lib_0.6.4_amd64.deb && \
dpkg -i ta-lib_0.6.4_amd64.deb && \
pip install TA-Lib==0.6.4
# Get time and timezone from host
ENV TZ=Europe/Moscow
RUN cp /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
WORKDIR /sigbot
CMD ["python3", "main.py"]