-
Notifications
You must be signed in to change notification settings - Fork 145
/
Dockerfile
36 lines (27 loc) · 917 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
35
36
FROM python:3.12.3-slim-bookworm
ARG DEBIAN_FRONTEND=noninteractive
ARG DEVELOPMENT=False
RUN mkdir -p /usr/src/robosats
WORKDIR /usr/src/robosats
RUN apt-get update -qq && \
apt-get install -qq -y --no-install-recommends \
git \
libpq-dev \
curl \
build-essential \
gnupg2
RUN python -m pip install --upgrade pip
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
COPY requirements_dev.txt ./
RUN if [ "$DEVELOPMENT" = "true" ]; then \
pip install --no-cache-dir -r requirements_dev.txt; \
fi
# copy current dir's content to container's WORKDIR root i.e. all the contents of the robosats app
COPY . .
# install lnd/cln grpc services
RUN sh scripts/generate_grpc.sh
RUN chmod +x scripts/entrypoint.sh
EXPOSE 8000
ENTRYPOINT [ "/usr/src/robosats/scripts/entrypoint.sh" ]
CMD ["python3", "manage.py", "runserver", "0.0.0.0:8000"]