Skip to content

Commit

Permalink
intsall packages from trixie
Browse files Browse the repository at this point in the history
  • Loading branch information
Joe Wragg committed Oct 8, 2024
1 parent 426cb70 commit aa1a971
Showing 1 changed file with 25 additions and 24 deletions.
49 changes: 25 additions & 24 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,53 +7,54 @@ RUN echo "Updating apt-get and installing dependencies..." && \
apt-get -y update > /dev/null && apt-get -y install > /dev/null \
git-core \
build-essential \
g++ \
g++ \
libssl-dev \
libasio-dev \
libasio-dev \
libglpk-dev \
pkg-config
pkg-config

ARG VROOM_EXPRESS_RELEASE=master

# clone here, since the runner image doesn't have git installed
RUN echo "Cloning and installing vroom-express release/branch ${VROOM_EXPRESS_RELEASE}..." && \
git clone --branch $VROOM_EXPRESS_RELEASE --single-branch https://github.com/VROOM-Project/vroom-express.git
git clone --branch $VROOM_EXPRESS_RELEASE --single-branch https://github.com/VROOM-Project/vroom-express.git

ARG VROOM_RELEASE=master

RUN echo "Cloning and installing vroom release/branch ${VROOM_RELEASE}..." && \
git clone --branch $VROOM_RELEASE --single-branch --recurse-submodules https://github.com/VROOM-Project/vroom.git && \
cd vroom && \
make -C /vroom/src -j$(nproc)
git clone --branch $VROOM_RELEASE --single-branch --recurse-submodules https://github.com/VROOM-Project/vroom.git && \
cd vroom && \
make -C /vroom/src -j$(nproc)


FROM debian:trixie-slim as runstage
FROM node:20-bookworm-slim as runstage

COPY --from=builder /vroom-express/. /vroom-express
COPY --from=builder /vroom/bin/vroom /usr/local/bin

WORKDIR /vroom-express

RUN apt-get update > /dev/null && \
apt-get install -y --no-install-recommends \
libssl3 \
curl \
libglpk40 \
> /dev/null && \
curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \
apt-get install -y nodejs npm && \
npm install --global yarn && \
rm -rf /var/lib/apt/lists/* && \
# Install vroom-express
npm config set loglevel error && \
npm install && \
# To share the config.yml & access.log file with the host
mkdir /conf

apt-get install -y --no-install-recommends \
libssl3 \
curl \
libglpk40 \
> /dev/null && \
rm -rf /var/lib/apt/lists/* && \
# Install vroom-express
npm config set loglevel error && \
npm install && \
# To share the config.yml & access.log file with the host
mkdir /conf

#Upgrade glibc
RUN echo "deb http://ftp.debian.org/debian trixie main" >> /etc/apt/sources.list && \
apt-get update > /dev/null && \
apt-get -t trixie install libc6 libc6-dev libc6-dbg libstdc++6 libgcc-s1 libzstd1 -y

COPY ./docker-entrypoint.sh /docker-entrypoint.sh
ENV VROOM_DOCKER=osrm \
VROOM_LOG=/conf
VROOM_LOG=/conf

HEALTHCHECK --start-period=10s CMD curl --fail -s http://localhost:3000/health || exit 1

Expand Down

0 comments on commit aa1a971

Please sign in to comment.