2024-08-30 19:49:42 +02:00
|
|
|
FROM buildpack-deps:bookworm AS isolate
|
2024-08-24 19:14:48 +02:00
|
|
|
RUN apt-get update && \
|
|
|
|
apt-get install -y --no-install-recommends git libcap-dev && \
|
|
|
|
rm -rf /var/lib/apt/lists/* && \
|
|
|
|
git clone https://github.com/envicutor/isolate.git /tmp/isolate/ && \
|
|
|
|
cd /tmp/isolate && \
|
|
|
|
git checkout af6db68042c3aa0ded80787fbb78bc0846ea2114 && \
|
|
|
|
make -j$(nproc) install && \
|
|
|
|
rm -rf /tmp/*
|
|
|
|
|
2024-08-30 19:49:42 +02:00
|
|
|
FROM node:20-bookworm-slim
|
2021-03-28 21:01:46 +02:00
|
|
|
|
2021-03-28 21:03:08 +02:00
|
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
|
|
|
2021-02-27 13:15:52 +01:00
|
|
|
RUN dpkg-reconfigure -p critical dash
|
2021-03-13 11:09:13 +01:00
|
|
|
RUN apt-get update && \
|
2021-03-28 21:01:46 +02:00
|
|
|
apt-get install -y libxml2 gnupg tar coreutils util-linux libc6-dev \
|
|
|
|
binutils build-essential locales libpcre3-dev libevent-dev libgmp3-dev \
|
2021-05-02 04:41:53 +02:00
|
|
|
libncurses6 libncurses5 libedit-dev libseccomp-dev rename procps python3 \
|
|
|
|
libreadline-dev libblas-dev liblapack-dev libpcre3-dev libarpack2-dev \
|
|
|
|
libfftw3-dev libglpk-dev libqhull-dev libqrupdate-dev libsuitesparse-dev \
|
2024-08-30 19:49:42 +02:00
|
|
|
libsundials-dev libpcre2-dev libcap-dev && \
|
2021-03-13 11:09:13 +01:00
|
|
|
rm -rf /var/lib/apt/lists/*
|
2024-08-30 19:49:42 +02:00
|
|
|
RUN useradd -M piston
|
2024-08-24 19:14:48 +02:00
|
|
|
COPY --from=isolate /usr/local/bin/isolate /usr/local/bin
|
|
|
|
COPY --from=isolate /usr/local/etc/isolate /usr/local/etc/isolate
|
2021-02-20 15:13:56 +01:00
|
|
|
|
2021-03-16 16:51:45 +01:00
|
|
|
RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && locale-gen
|
|
|
|
|
2021-02-20 15:13:56 +01:00
|
|
|
WORKDIR /piston_api
|
2021-03-29 10:33:49 +02:00
|
|
|
COPY ["package.json", "package-lock.json", "./"]
|
2021-05-07 21:22:25 +02:00
|
|
|
RUN npm install
|
2021-02-20 15:13:56 +01:00
|
|
|
COPY ./src ./src
|
|
|
|
|
2024-08-24 19:14:48 +02:00
|
|
|
CMD ["/piston_api/src/docker-entrypoint.sh"]
|
2021-03-28 21:01:46 +02:00
|
|
|
EXPOSE 2000/tcp
|