-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
34 lines (26 loc) · 781 Bytes
/
Dockerfile
File metadata and controls
34 lines (26 loc) · 781 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 ubuntu:22.04
# Install Python and required packages
RUN apt-get update && apt-get install -y \
python3 \
python3-pip \
python3-dev \
gcc \
&& rm -rf /var/lib/apt/lists/* \
&& ln -sf /usr/bin/python3 /usr/bin/python \
&& ln -sf /usr/bin/pip3 /usr/bin/pip
# Set working directory
WORKDIR /app
# Copy requirements and install Python dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy application code
COPY avn_proxy/ ./avn_proxy/
COPY entrypoint.sh .
# Make entrypoint script executable
RUN chmod +x /app/entrypoint.sh
# Create directory for submit history
RUN mkdir -p /app/submit_history
# Expose stratum ports for both algorithms
EXPOSE 54321 54322 8080
# Run the proxy
CMD ["/app/entrypoint.sh"]