-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.arm
38 lines (26 loc) · 888 Bytes
/
Dockerfile.arm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
FROM snel/von-image:node-1.12-4-arm64
ENV DEBIAN_FRONTEND noninteractive
USER root
RUN apt-get update -y && apt-get install -y \
software-properties-common \
apt-transport-https \
curl \
# Only needed to build indy-sdk
build-essential
# nodejs
RUN curl -sL https://deb.nodesource.com/setup_16.x | bash
# yarn
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \
echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
# install depdencies
RUN apt-get update -y && apt-get install -y --allow-unauthenticated \
nodejs
# Install yarn seperately due to `no-install-recommends` to skip nodejs install
RUN apt-get install -y --no-install-recommends yarn
WORKDIR /www
COPY yarn.lock yarn.lock
COPY package.json package.json
RUN yarn install
# Copy dependencies
COPY . .
CMD ["yarn", "start"]