2023-05-01 11:38:36 +00:00
|
|
|
FROM python:3.11.3-slim-bullseye
|
2022-06-07 22:14:56 +00:00
|
|
|
ARG DEBIAN_FRONTEND=noninteractive
|
2022-02-06 18:43:17 +00:00
|
|
|
|
|
|
|
RUN mkdir -p /usr/src/robosats
|
|
|
|
|
2022-02-07 11:21:59 +00:00
|
|
|
# specifying the working dir inside the container
|
|
|
|
WORKDIR /usr/src/robosats
|
2022-02-06 18:43:17 +00:00
|
|
|
|
2023-05-01 11:38:36 +00:00
|
|
|
RUN apt-get update -qq && \
|
|
|
|
apt-get install -qq -y --no-install-recommends \
|
|
|
|
git \
|
|
|
|
libpq-dev \
|
|
|
|
curl \
|
|
|
|
build-essential \
|
|
|
|
gnupg2
|
2022-06-07 22:14:56 +00:00
|
|
|
|
2022-02-13 16:43:49 +00:00
|
|
|
RUN python -m pip install --upgrade pip
|
|
|
|
|
2022-02-06 18:43:17 +00:00
|
|
|
COPY requirements.txt ./
|
|
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
|
|
|
|
# copy current dir's content to container's WORKDIR root i.e. all the contents of the robosats app
|
|
|
|
COPY . .
|
|
|
|
|
2023-05-01 11:38:36 +00:00
|
|
|
# install lnd/cln grpc services
|
2023-05-01 13:22:47 +00:00
|
|
|
RUN sh generate_grpc.sh
|
2022-02-06 18:43:17 +00:00
|
|
|
|
|
|
|
EXPOSE 8000
|
|
|
|
|
2022-02-13 16:43:49 +00:00
|
|
|
CMD ["python3", "manage.py", "runserver", "0.0.0.0:8000"]
|