forked from Th0rgal/binance.py
-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
executable file
·23 lines (14 loc) · 633 Bytes
/
Dockerfile
File metadata and controls
executable file
·23 lines (14 loc) · 633 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# 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 -r requirements.txt
COPY ./exchanges_wrapper /home/appuser/.local/lib/python3.12/site-packages/exchanges_wrapper/
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
CMD ["python3","exchanges_wrapper/exch_srv.py"]