-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
34 lines (28 loc) · 807 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
27
28
29
30
31
32
33
34
# Use Python base image
FROM python:3.13-slim
# Set working directory
WORKDIR /app
# Install system dependencies for building Python packages
RUN apt-get update && apt-get install -y \
build-essential \
python3-dev \
libffi-dev \
libssl-dev \
&& rm -rf /var/lib/apt/lists/*
# Copy only the required files
COPY main.py .
COPY requirements.txt .
# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Set environment variables (Optional: Override during runtime)
ENV API_KEY=""
ENV API_SECRET=""
ENV SPREAD_PERCENTAGE="0.003"
ENV TRADING_PAIRS="ADA/USDT,CKB/USDT"
ENV TRADE_INTERVAL="60"
ENV MOVING_EMA_TIMEFRAME="1m"
ENV DOWNTREND_PROTECT="True"
ENV BUY_ONLY="FALSE"
ENV SANDBOX_MODE="True"
# Set default command to run the bot
CMD ["python", "main.py"]