Repository navigation
Expand file tree
/
Copy pathDockerfile
More file actions
51 lines (41 loc) · 1.9 KB
/
Copy pathDockerfile
File metadata and controls
51 lines (41 loc) · 1.9 KB
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
FROM ubuntu:jammy
# Install dependencies
# [Optional] Uncomment this section to install additional OS packages.
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
&& apt-get -y install --no-install-recommends clang-format clang-tidy clang-tools clang clangd libc++-dev libc++1 libc++abi-dev \
libc++abi1 libclang-dev libclang1 liblldb-dev libomp-dev libomp5 lld lldb llvm-dev llvm-runtime llvm python3-clang libcurl4-openssl-dev \
libblocksruntime-dev libkqueue-dev libpthread-workqueue-dev git build-essential python-is-python3 cmake ninja-build systemtap-sdt-dev libbsd-dev \
linux-libc-dev apache2-utils fswatch uuid-dev valgrind ca-certificates wget curl xxd pkg-config libpq-dev libjansson-dev gpg-agent autoconf libtool automake \
ruby-full zsh software-properties-common
# Update certificates
RUN mkdir /usr/local/share/ca-certificates/cacert.org
RUN wget -P /usr/local/share/ca-certificates/cacert.org http://www.cacert.org/certs/root.crt http://www.cacert.org/certs/class3.crt
RUN update-ca-certificates
RUN git config --global http.sslCAinfo /etc/ssl/certs/ca-certificates.crt
WORKDIR /deps
RUN pwd
RUN git clone https://github.com/benmcollins/libjwt.git
WORKDIR /deps/libjwt
RUN autoreconf -i
RUN ./configure
RUN make all
RUN make install
# Build libdispatch
WORKDIR /deps
RUN git clone https://github.com/apple/swift-corelibs-libdispatch.git
WORKDIR /deps/swift-corelibs-libdispatch
RUN cmake -G Ninja -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ .
RUN ninja install
ENV LD_LIBRARY_PATH /usr/local/lib
# Download dbmate
RUN curl -fsSL -o /usr/local/bin/dbmate https://github.com/amacneil/dbmate/releases/latest/download/dbmate-linux-amd64
RUN chmod +x /usr/local/bin/dbmate
# Set timezone to US Central
RUN rm -rf /etc/localtime
RUN ln -s /usr/share/zoneinfo/America/Chicago /etc/localtime
# Copy scripts
COPY scripts /usr/local/bin
WORKDIR /base
COPY . .
# Build and install
RUN make install