squeaknode/docker/sqkserver/Dockerfile
Jonathan Zernik 3d8a77cdaa
Run in main docker (#113)
* Docker-compose in main docker folder working

* Fix rpc host in start lnd script

* Remove link alias for btcd in btcctl

* Remove docker-compose links alias for btcd in lnd container

* Remove unused open ports in itest docker-compose

* Remove unused environment variabls from itest docker-compose

* Fix port conflicts between itest and docker docker foler docker-compose containers
2020-07-21 20:48:52 -07:00

37 lines
765 B
Docker

FROM ubuntu:20.04
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y \
python3-pip \
python3-psycopg2 \
git
COPY requirements.txt /
RUN pip3 install --upgrade pip && \
pip3 install -r requirements.txt
WORKDIR /app
# Download the rpc files.
RUN git clone https://github.com/googleapis/googleapis.git
# Copy the source code.
COPY squeakserver ./squeakserver
COPY proto ./proto
COPY setup.py setup.cfg MANIFEST.in README.md init.sql install-rpc.sh wait-for-it.sh ./
# Install the gRPC files.
RUN chmod +x install-rpc.sh && \
./install-rpc.sh
RUN python3 setup.py install
EXPOSE 8774
EXPOSE 8994
EXPOSE 18774
EXPOSE 18994
# Copy the entrypoint script.
COPY "docker/sqkserver/start-sqkserver.sh" .
RUN chmod +x start-sqkserver.sh