Skip to content

Commit 8c5d466

Browse files
author
Gonzalo Diaz
committed
[CONFIG] [Docker]
* better Dockerfile to resolve some differences building images in arm64. * Base image set to current LTS specific version: Ubuntu 24.04 Noble.
1 parent f2fa35f commit 8c5d466

File tree

1 file changed

+16
-9
lines changed

1 file changed

+16
-9
lines changed

Dockerfile

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
FROM ubuntu:24.10 AS init
1+
FROM ubuntu:noble-20241118.1 AS init
22

33
ENV WORKDIR=/app
44
WORKDIR ${WORKDIR}
5+
ENV VCPKG_ROOT=/opt/vcpkg
56

67
RUN apt-get -y update && \
78
apt-get -y install --no-install-recommends --no-install-suggests make && \
@@ -13,23 +14,29 @@ ARG DEBIAN_FRONTEND=noninteractive
1314
ENV TZ=Etc/UTC
1415

1516
# build tools
16-
RUN apt-get update && \
17-
apt-get -y install --no-install-recommends --no-install-suggests build-essential cmake g++ make pkg-config && \
18-
rm -rf /var/lib/apt/lists/*
17+
RUN apt-get update \
18+
&& apt-get -y install --no-install-recommends --no-install-suggests build-essential cmake g++ make pkg-config \
19+
&& rm -rf /var/lib/apt/lists/* \
20+
&& make --version \
21+
&& cmake --version \
22+
&& g++ --version
23+
24+
25+
ENV VCPKG_FORCE_SYSTEM_BINARIES=1
1926

2027
# vcpkg Package Manager
21-
ADD https://github.com/microsoft/vcpkg/archive/refs/tags/2024.08.23.tar.gz vcpkg.tar.gz
28+
ADD https://github.com/microsoft/vcpkg/archive/refs/tags/2024.10.21.tar.gz vcpkg.tar.gz
2229
RUN apt-get -y update && \
2330
apt-get -y install --no-install-recommends --no-install-suggests \
24-
ca-certificates curl git unzip zip && \
31+
ca-certificates curl git ninja-build unzip zip && \
2532
rm -rf /var/lib/apt/lists/* && \
2633
mkdir /opt/vcpkg && \
2734
tar xf vcpkg.tar.gz --strip-components=1 -C /opt/vcpkg && \
35+
rm -rf vcpkg.tar.gz && \
2836
/opt/vcpkg/bootstrap-vcpkg.sh && \
2937
ln -s /opt/vcpkg/vcpkg /usr/local/bin/vcpkg && \
30-
rm -rf vcpkg.tar.gz && \
38+
rm -rf /var/lib/apt/lists/* && \
3139
vcpkg version
32-
ENV VCPKG_ROOT=/opt/vcpkg
3340

3441
# sources
3542
COPY ./src ${WORKDIR}/src
@@ -104,7 +111,7 @@ COPY --from=builder ${WORKDIR}/build ${WORKDIR}/
104111

105112
CMD ["make", "test"]
106113

107-
FROM ubuntu:24.10 AS production
114+
FROM ubuntu:noble-20241118.1 AS production
108115

109116
ENV LOG_LEVEL=INFO
110117
ENV BRUTEFORCE=false

0 commit comments

Comments
 (0)