-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathubuntu-dev.dockerfile
50 lines (38 loc) · 1.43 KB
/
ubuntu-dev.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
50
FROM ubuntu:22.04
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update
RUN apt-get upgrade -y
RUN apt-get install -y build-essential
RUN apt-get install -y git cmake ninja-build wget zip
RUN apt-get install -y gcc-multilib g++-multilib pkg-config autoconf bison libtool flex
RUN apt-get install -y python3 python3-pip
# Install pre-requisites (keep synced with README.md)
## NodeJS
RUN apt-get install -y ca-certificates curl gnupg
RUN mkdir -p /etc/apt/keyrings
RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
ENV NODE_MAJOR=20
RUN echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list
RUN apt-get update
RUN apt-get install -y nodejs
# Set the working directory
WORKDIR /usr/src-ts/app
COPY ./scripts ./scripts
RUN ./scripts/cpp-install-emsdk.sh
COPY ./vcpkg-overlays ./vcpkg-overlays
COPY ./vcpkg-configuration.json ./vcpkg-configuration.json
COPY ./vcpkg.json ./vcpkg.json
RUN ./scripts/cpp-install-vcpkg.sh
COPY ./package*.json .
COPY ./packages ./packages
COPY ./utils ./utils
RUN npm ci
RUN npm run install-playright-with-deps
COPY ./src-cpp ./src-cpp
COPY ./CMake* .
COPY ./vcpkg* .
COPY ./lerna* .
COPY ./vitest* .
ENTRYPOINT ["/bin/bash", "--login", "-c"]
CMD ["/bin/bash"]
# CMD ["npm", "run", "test-node"]