Forked from christroutner/bch-api

This commit is contained in:
Chris Troutner
2020-07-27 21:25:31 -07:00
commit 2358737f9e
82 changed files with 36529 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
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
# Install Redis. TODO: Make this a separate container.
# Clone the repository
WORKDIR /home/safeuser
RUN git clone https://github.com/christroutner/bch-api
WORKDIR /home/safeuser/bch-api
RUN npm install
# Generate documentation
RUN npm run docs
EXPOSE 3000
COPY start-local-mainnet.sh start-local-mainnet.sh
CMD ["./start-local-mainnet.sh"]