-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Dockerfile.armv7
executable file
·32 lines (23 loc) · 1.47 KB
/
Dockerfile.armv7
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
FROM arm32v7/ubuntu:18.10
WORKDIR /app
ADD . /app
# For cross compile on dockerhub
ENV QEMU_EXECVE 1
COPY docker/armv7/qemu-arm-static /usr/bin/
COPY docker/armv7/resin-xbuild /usr/bin/
RUN [ "/usr/bin/qemu-arm-static", "/bin/sh", "-c", "ln -s resin-xbuild /usr/bin/cross-build-start; ln -s resin-xbuild /usr/bin/cross-build-end; ln /bin/sh /bin/sh.real" ]
RUN [ "cross-build-start" ]
RUN apt-get update && apt-get install -y apt-transport-https ca-certificates --assume-yes --no-install-recommends apt-utils
RUN apt-get update && apt-get install -y locales --assume-yes && rm -rf /var/lib/apt/lists/* && localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8
ENV LANG en_US.utf8
RUN apt-get update && apt-get install -y xvfb libssl-dev curl xauth --assume-yes --no-install-recommends apt-utils
RUN apt-get update && apt-get install -y build-essential --assume-yes --no-install-recommends apt-utils
RUN apt-get update && apt-get install -y npm --assume-yes --no-install-recommends apt-utils
# Install pm2
RUN npm config set unsafe-perm true && npm config set registry http://registry.npmjs.org/ && npm install pm2 -g
# Install project dependencies
RUN npm config set unsafe-perm true && npm config set registry http://registry.npmjs.org/ && npm install
RUN npm config set unsafe-perm true && npm config set registry http://registry.npmjs.org/ && npm install [email protected]
# For cross compile on dockerhub
RUN [ "cross-build-end" ]
CMD ["pm2-runtime", ".pm2-process.json"]