2019-07-07 13:16:10 -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
|
|
|
|
|
|
2019-07-14 19:54:17 -07:00
|
|
|
# Clone the repository
|
2019-07-07 13:16:10 -07:00
|
|
|
WORKDIR /home/safeuser
|
|
|
|
|
RUN git clone https://github.com/christroutner/bch-api
|
|
|
|
|
WORKDIR /home/safeuser/bch-api
|
|
|
|
|
RUN npm install
|
|
|
|
|
|
2019-07-14 19:54:17 -07:00
|
|
|
# Generate documentation
|
|
|
|
|
RUN npm run docs
|
2019-07-07 13:16:10 -07:00
|
|
|
|
|
|
|
|
EXPOSE 3000
|
|
|
|
|
|
2019-07-14 20:03:26 -07:00
|
|
|
COPY start-local-mainnet.sh start-local-mainnet.sh
|
|
|
|
|
CMD ["./start-local-mainnet.sh"]
|