Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix docker FromAsCasing warning #90

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 17 additions & 18 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
FROM debian:trixie-slim as builder
FROM debian:trixie-slim AS builder
LABEL maintainer=nils@gis-ops.com

WORKDIR /

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++ \
libssl-dev \
libasio-dev \
libglpk-dev \
pkg-config
apt-get -y update > /dev/null && apt-get -y install > /dev/null \
git-core \
build-essential \
g++ \
libssl-dev \
libasio-dev \
libglpk-dev \
pkg-config
jcoupey marked this conversation as resolved.
Show resolved Hide resolved

ARG VROOM_EXPRESS_RELEASE=master

Expand All @@ -22,12 +22,11 @@ RUN echo "Cloning and installing vroom-express release/branch ${VROOM_EXPRESS_RE
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 && \
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 node:20-bookworm-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
Expand All @@ -36,10 +35,10 @@ WORKDIR /vroom-express

RUN apt-get update > /dev/null && \
apt-get install -y --no-install-recommends \
libssl3 \
curl \
libglpk40 \
> /dev/null && \
libssl3 \
curl \
libglpk40 \
> /dev/null && \
rm -rf /var/lib/apt/lists/* && \
# Install vroom-express
npm config set loglevel error && \
Expand All @@ -49,8 +48,8 @@ RUN apt-get update > /dev/null && \

#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
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 \
Expand Down