Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] feat: docker #66

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
FROM node:8.9.0-slim

# set some ENV vars
ENV HOME /root
# ENV TERM dumb
ENV TERM=xterm-256color
ENV PROJECT_ROOT /opt/app

# install dependencies:
RUN apt-get update \
&& apt-get install -qqy build-essential pkg-config libc6-dev m4 g++-multilib \
&& autoconf libtool ncurses-dev unzip git python \
&& zlib1g-dev wget bsdmainutils automake
&& rm -rf /var/lib/apt/lists/*

# install some apt packages (man)
RUN apt-get update \
&& apt-get install -qqy netcat net-tools s3cmd yarn \
&& rm -rf /var/lib/apt/lists/*

# Change TimeZone
# ENV TZ=America/Los_Angeles
# RUN ln -sf /usr/share/zoneinfo/America/Los_Angeles /etc/localtime
# RUN echo "America/Los_Angeles" > /etc/timezone
# RUN date

# From here we load our application's code in, therefore the previous docker
# "layer" thats been cached will be used if possible
WORKDIR $PROJECT_ROOT
ADD . $PROJECT_ROOT

# expose app port
# EXPOSE 3000
# EXPOSE 3333
# EXPOSE 9333

# Build
RUN ./btcputil/build.sh -j$(nproc)
# Fetch Zcash ceremony keys
RUN ./btcputil/fetch-params.sh
# Run
CMD ["./src/btcpd"]