Skip to content

Commit

Permalink
no need for vroom-express to be in the builder stage
Browse files Browse the repository at this point in the history
  • Loading branch information
nilsnolde committed Jan 6, 2024
1 parent d18a811 commit 87b68d1
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,26 +13,22 @@ RUN echo "Updating apt-get and installing dependencies..." && \
libglpk-dev \
pkg-config

ARG VROOM_RELEASE=v1.14.0-rc.2
ARG VROOM_RELEASE=master

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

ARG VROOM_EXPRESS_RELEASE=v0.12.0

RUN echo "Cloning and installing vroom-express release ${VROOM_EXPRESS_RELEASE}..." && \
git clone --branch $VROOM_EXPRESS_RELEASE https://github.com/VROOM-Project/vroom-express.git && \
cd vroom-express

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

ARG VROOM_EXPRESS_RELEASE=master

RUN apt-get update > /dev/null && \
apt-get install -y --no-install-recommends \
libssl3 \
Expand All @@ -41,6 +37,7 @@ RUN apt-get update > /dev/null && \
> /dev/null && \
rm -rf /var/lib/apt/lists/* && \
# Install vroom-express
git clone --branch $VROOM_EXPRESS_RELEASE --single-branch https://github.com/VROOM-Project/vroom-express.git && \
npm config set loglevel error && \
npm install && \
# To share the config.yml & access.log file with the host
Expand Down

0 comments on commit 87b68d1

Please sign in to comment.