-
-
Notifications
You must be signed in to change notification settings - Fork 55
Expand file tree
/
Copy pathDockerfile
More file actions
executable file
·25 lines (16 loc) · 717 Bytes
/
Copy pathDockerfile
File metadata and controls
executable file
·25 lines (16 loc) · 717 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
# syntax=docker/dockerfile:1
FROM python:3.12-slim
RUN useradd -ms /bin/bash appuser
USER appuser
ENV PATH="/home/appuser/.local/bin:${PATH}"
ENV PATH="/home/appuser/.local/lib/python3.12/site-packages:${PATH}"
ENV PYTHONUNBUFFERED=1
COPY requirements.txt requirements.txt
RUN pip3 install --no-cache-dir -r requirements.txt
COPY ./martin_binance /home/appuser/.local/lib/python3.12/site-packages/martin_binance/
USER root
RUN chmod +x /home/appuser/.local/lib/python3.12/site-packages/martin_binance/backtest/optimizer.py
USER appuser
WORKDIR "/home/appuser/.local/lib/python3.12/site-packages"
LABEL org.opencontainers.image.description="See README.md 'Get started' for setup and run package"
EXPOSE 50051