squeaknode/docker/test/Dockerfile
Jonathan Zernik 34ec5deee8
Use python slim docker base image (#516)
* Use python slim image for both squeaknode and test

* Clean up dockerfiles

* Reorder dockerfile for squeaknode

* Load alembic config file from packaged module

* Alembic directory is now loaded from packaged module

* Got multi-stage docker build working

* Removed old app directory from docker config

* Remove commented package data arg from setup.py

* Remove unused alembic graft from manifest

* Fix extra space in alembic revision
2020-12-27 04:59:59 -08:00

20 lines
446 B
Docker

FROM python:3.8-slim
COPY requirements-itest.txt /
COPY libs /libs
RUN pip3 install -r requirements-itest.txt
WORKDIR /app
COPY proto ./proto
COPY itests/test.sh squeaknode/lightning/lnd_lightning_client.py ./
COPY itests/tests ./tests
RUN python3 -m grpc_tools.protoc --proto_path=. --python_out=. --grpc_python_out=. \
proto/lnd.proto \
proto/squeak_server.proto \
proto/squeak_admin.proto
RUN chmod +x test.sh
CMD ["bash", "test.sh"]