-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
74 lines (61 loc) · 2.16 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
FROM ubuntu:20.04
ARG GID=1000
ARG UID=1000
ARG USER=user
ENV TZ=UTC
ENV DEBIAN_FRONTEND=noninteractive
RUN echo "Installing deps..."
RUN apt-get update && \
apt-get -y install \
build-essential \
curl \
git \
gobject-introspection \
jq \
libboost-all-dev \
libgirepository1.0-dev \
libgtk-3-dev \
libcairo2 \
libcairo2-dev \
make
ENV NODE_VERSION=18
RUN echo "Installing Node.js v${NODE_VERSION}..."
# https://github.com/nodesource/distributions/blob/master/README.md#deb
RUN curl -fsSL https://deb.nodesource.com/setup_${NODE_VERSION}.x | bash -
RUN apt-get -y install nodejs
RUN npm install -g npm pkg@5.8.1
RUN groupadd --gid $GID $USER
RUN useradd --shell /bin/bash --create-home --gid $GID --uid $UID $USER
USER $USER
WORKDIR /home/$USER
RUN echo "Copying source code..."
RUN mkdir -p velisp
COPY examples/ velisp/examples/
COPY grammar/ velisp/grammar/
COPY lib/ velisp/lib/
COPY linux/ velisp/linux/
COPY src/ velisp/src/
COPY patches/ velisp/patches/
COPY util/ velisp/util/
COPY Makefile velisp/
COPY package.json velisp/
COPY package-lock.json velisp/
COPY package.json.template velisp/
COPY pkg.json velisp/
COPY rollup.config.js velisp/
COPY LICENSE velisp/
COPY README-en-linux.template velisp/
COPY README-ru-linux.template velisp/
RUN mkdir -p velisp/bin
RUN mkdir -p velisp/lib64/girepository-1.0
RUN echo "Building slide..."
RUN git clone -b 0.10.1 https://github.com/ten0s/slide && \
cd slide && \
make && \
make install && \
cp -r install/bin/* ../velisp/bin/ && \
cp -r install/lib/* ../velisp/lib64/ && \
cd ..
RUN echo "Building VeLisp..."
WORKDIR velisp
RUN make linuxPackage