Files

27 lines
606 B
Docker
Raw Permalink Normal View History

2020-07-27 21:25:31 -07:00
FROM christroutner/ct-base-ubuntu
MAINTAINER Chris Troutner <chris.troutner@gmail.com>
RUN apt-get update -y
#Set the working directory to be the home directory
WORKDIR /home/safeuser
# Switch to user account.
USER safeuser
# Prep 'sudo' commands.
#RUN echo 'abcd8765' | sudo -S pwd
# Clone the repository
WORKDIR /home/safeuser
RUN git clone https://github.com/Permissionless-Software-Foundation/bch-api
2020-07-27 21:25:31 -07:00
WORKDIR /home/safeuser/bch-api
2020-08-08 10:27:34 -07:00
RUN npm install --silent
2020-07-27 21:25:31 -07:00
# Generate documentation
RUN npm run docs
EXPOSE 3000
COPY start-local-testnet.sh start-local-testnet.sh
CMD ["./start-local-testnet.sh"]