Docker config

This commit is contained in:
Eden Kirin
2023-04-21 11:27:48 +02:00
parent 53dbc47553
commit 82259f4522
4 changed files with 53 additions and 10 deletions

View File

@ -18,6 +18,8 @@ RUN python -m venv /venv
ENV \
PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
FAIRHOPPER_API_PORT=${INTERNAL_API_PORT} \
FAIRHOPPER_WS_PORT=${INTERNAL_WS_PORT} \
PATH="/venv/bin:$PATH"
RUN \
@ -26,7 +28,8 @@ RUN \
# install python libs
pip install -r requirements.txt --no-cache-dir --prefer-binary
COPY ./.docker/run.sh .
COPY ./hopper ./service
COPY ./.docker/* ./
COPY ./hopper ./hopper
COPY ./main.py .
ENTRYPOINT [ "/app/run.sh" ]