forked from simolus3/drift
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
32 lines (26 loc) · 807 Bytes
/
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
FROM dart
RUN apt update
RUN DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC apt install -y chromium build-essential gcc
RUN ln -s /usr/bin/chromium /usr/bin/google-chrome
RUN chmod +x /usr/bin/google-chrome
RUN useradd -ms /bin/bash developer
RUN mkdir -p /app
USER developer
WORKDIR /home/developer
RUN cd /tmp/ &&\
mkdir sqlite &&\
cd sqlite &&\
curl https://sqlite.org/2022/sqlite-autoconf-3380000.tar.gz --output sqlite.tar.gz &&\
tar zxvf sqlite.tar.gz &&\
cd sqlite-autoconf-3380000 &&\
./configure &&\
make &&\
mkdir ../out &&\
cp sqlite3 ../out &&\
cp .libs/libsqlite3.so ../out
USER developer
COPY --chown=developer:developer . /app/
WORKDIR /app/tool
RUN ./upgrade_all.sh
CMD export LD_LIBRARY_PATH=/tmp/sqlite/out ; ./test_all.sh
#; (cd .. && ./tool/misc_integration_test.sh)