1
1
# ## Build blockstack-core-sidecar API
2
- FROM node:13.14.0 -buster as build
2
+ FROM node:lts -buster as build
3
3
4
4
ARG API_TAG=v0.29.2
5
5
@@ -8,7 +8,7 @@ RUN apt-get -y update && apt-get -y install openjdk-11-jre-headless
8
8
WORKDIR /app
9
9
10
10
RUN git clone -b $API_TAG --depth 1 https://github.com/blockstack/stacks-blockchain-api.git .
11
- # COPY ./rosetta-constants.ts /app/src/api/
11
+ COPY ./rosetta-constants.ts /app/src/api/
12
12
RUN grep process.env.STACKS_NETWORK /app/src/api/rosetta-constants.ts
13
13
RUN echo "GIT_TAG=$(git tag --points-at HEAD)" >> .env
14
14
RUN npm install && npm run build && npm prune --production
@@ -45,6 +45,10 @@ RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selectio
45
45
# ## Storage goes in /data; see https://www.rosetta-api.org/docs/standard_storage_location.html
46
46
RUN mkdir -p /data
47
47
48
+ # ## Install nodejs
49
+ RUN curl -sL https://deb.nodesource.com/setup_14.x | bash -
50
+ RUN apt-get install -y nodejs
51
+
48
52
# ## stacky user ###
49
53
# see https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#user
50
54
RUN useradd -l -u 33333 -G sudo -md /data/stacky -s /bin/bash -p stacky stacky \
@@ -57,13 +61,6 @@ RUN sudo chown -R stacky:stacky $HOME
57
61
RUN mkdir /data/stacky/.bashrc.d
58
62
59
63
# ## Node.js
60
- # ENV NODE_VERSION=14.13.1
61
- ENV NODE_VERSION=13.14.0
62
- RUN curl -fsSL https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash \
63
- && bash -c ". .nvm/nvm.sh \
64
- && nvm install $NODE_VERSION \
65
- && nvm alias default $NODE_VERSION"
66
- ENV PATH=$PATH:/data/stacky/.nvm/versions/node/v${NODE_VERSION}/bin
67
64
RUN node -e 'console.log("Node.js runs")'
68
65
69
66
# ## Setup stacks-node
0 commit comments