-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
49 lines (41 loc) · 1.39 KB
/
Dockerfile
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
39
40
41
42
43
44
45
46
47
48
49
#
# If you are not running on an ARM system, macOS, Linux, or Windows;
# You will need qemu-user-static or like package installed
# to provide`qemu-arm-static` for ARM code execution.
#
# Docker Desktop provides support for this feature.
#
FROM --platform=linux/arm/v7 debian:bullseye
# Install the basics.
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update -y && \
apt-get install -y apt-utils && \
apt-get upgrade -y && \
apt-get install -y build-essential git python3 curl wget bash libatomic1 bash-completion libnss3 && \
rm -rf /var/lib/apt/lists && \
rm -rf /var/cache/apt
# Install the Electron dependencies.
RUN apt-get update -y && \
apt-get install -y xorg gconf2 gconf-service libnotify4 libappindicator1 libxtst6 libxss1 libasound2 \
libgl1-mesa-glx libgl1-mesa-dri && \
rm -rf /var/lib/apt/lists && \
rm -rf /var/cache/apt
# Default environment.
ENV SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt
ENV NODE_EXTRA_CA_CERTS=/etc/ssl/certs/ca-certificates.crt
# Setup user.
RUN useradd -m builder
USER builder
# Install node.
SHELL ["/bin/bash", "-lc"]
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.0/install.sh | bash
RUN nvm install 20 && \
nvm use 20 && \
corepack enable && \
corepack enable npm
# Setup entrypoint.
COPY docker /
ENTRYPOINT [ "/entrypoint.sh" ]
CMD ["bash", "-l"]
# Project
WORKDIR /project