|
@@ -2,8 +2,26 @@
|
|
|
|
|
|
|
|
FROM maven:3-jdk-11 as base
|
|
FROM maven:3-jdk-11 as base
|
|
|
|
|
|
|
|
-RUN apt-get update && apt-get install -y make git sqlite3 \
|
|
|
|
|
- && rm -rf /var/lib/apt/lists
|
|
|
|
|
|
|
+RUN apt-get update && apt-get install -y make git sqlite3 build-essential dpkg-dev
|
|
|
|
|
+
|
|
|
|
|
+RUN echo "deb-src http://deb.debian.org/debian buster main" >> /etc/apt/sources.list && \
|
|
|
|
|
+ echo "deb-src http://deb.debian.org/debian buster-updates main" >> /etc/apt/sources.list && \
|
|
|
|
|
+ echo "deb-src http://security.debian.org/debian-security buster/updates main" >> /etc/apt/sources.list
|
|
|
|
|
+
|
|
|
|
|
+RUN mkdir -p /build
|
|
|
|
|
+WORKDIR /build
|
|
|
|
|
+
|
|
|
|
|
+RUN apt-get update && \
|
|
|
|
|
+ apt-get -y source libjemalloc-dev && \
|
|
|
|
|
+ apt-get -y build-dep libjemalloc-dev && \
|
|
|
|
|
+ echo "override_dh_auto_configure:" >> jemalloc-5.1.0/debian/rules && \
|
|
|
|
|
+ echo "\tdh_auto_configure -- --enable-debug --enable-fill --enable-prof --enable-stat" >> jemalloc-5.1.0/debian/rules && \
|
|
|
|
|
+ cat jemalloc-5.1.0/debian/rules
|
|
|
|
|
+
|
|
|
|
|
+WORKDIR /build/jemalloc-5.1.0
|
|
|
|
|
+RUN dpkg-buildpackage
|
|
|
|
|
+
|
|
|
|
|
+RUN rm -rf /var/lib/apt/lists
|
|
|
|
|
|
|
|
COPY vendor/envsubst /opt/envsubst
|
|
COPY vendor/envsubst /opt/envsubst
|
|
|
RUN chmod +x /opt/envsubst
|
|
RUN chmod +x /opt/envsubst
|
|
@@ -41,6 +59,9 @@ RUN mkdir /opt/cdbg && \
|
|
|
RUN useradd --create-home node
|
|
RUN useradd --create-home node
|
|
|
|
|
|
|
|
COPY --from=builder /git-bridge.jar /
|
|
COPY --from=builder /git-bridge.jar /
|
|
|
|
|
+COPY --from=builder /build/*.deb /tmp/
|
|
|
|
|
+
|
|
|
|
|
+RUN dpkg -i /tmp/libjemalloc*.deb
|
|
|
|
|
|
|
|
COPY vendor/envsubst /opt/envsubst
|
|
COPY vendor/envsubst /opt/envsubst
|
|
|
RUN chmod +x /opt/envsubst
|
|
RUN chmod +x /opt/envsubst
|