2022-11-29 21:05:20 +01:00
|
|
|
# Builds a Docker image for use LNbits regtest scripts.
|
|
|
|
|
# Currenly works only for the forked version:
|
|
|
|
|
# fork: https://github.com/fusion44/legend-regtest-enviroment
|
|
|
|
|
# original: https://github.com/lnbits/legend-regtest-enviroment
|
|
|
|
|
|
|
|
|
|
FROM python:3.9
|
|
|
|
|
|
|
|
|
|
WORKDIR /code
|
|
|
|
|
|
|
|
|
|
COPY ./requirements.txt /code/requirements.txt
|
|
|
|
|
|
|
|
|
|
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
|
|
|
|
|
|
|
|
|
COPY ./app /code/app
|
|
|
|
|
|
|
|
|
|
COPY ./docker/regtest/.env.cln1 /code/.env.cln1
|
2023-03-12 17:35:26 +01:00
|
|
|
COPY ./docker/regtest/.env.cln2 /code/.env.cln2
|
2022-11-29 21:05:20 +01:00
|
|
|
COPY ./docker/regtest/.env.lnd1 /code/.env.lnd1
|
2023-03-12 17:35:26 +01:00
|
|
|
COPY ./docker/regtest/.env.lnd2 /code/.env.lnd2
|
|
|
|
|
COPY ./docker/regtest/.env.lnd3 /code/.env.lnd3
|
2022-11-29 21:05:20 +01:00
|
|
|
COPY ./docker/regtest/entrypoint.sh /code/entrypoint.sh
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "80"]
|