Skip to content

Commit 67e6eb2

Browse files
committed
smaller docker image
1 parent e9a8e00 commit 67e6eb2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
FROM debian:buster-slim AS build-dev
1+
FROM alpine:3.19 AS build-dev
22

33
WORKDIR /app/src
44
COPY --link . .
55

6-
RUN apt-get update && \
7-
apt-get install -y gcc g++ cmake
6+
RUN apk add --no-cache gcc musl-dev g++ cmake make linux-headers
87

98
ENV CC=/usr/bin/gcc \
109
CXX=/usr/bin/g++
1110

12-
RUN cmake -S . -B build -DCMAKE_BUILD_TYPE=Release && cmake --build build --target example-file
11+
RUN cmake -S . -B build -DCMAKE_BUILD_TYPE=Release && \
12+
cmake --build build --target example-file
1313

14-
FROM bitnami/minideb:bookworm
14+
FROM alpine:3.19
1515

1616
RUN mkdir -p /app/public
1717
COPY --from=build-dev /app/src/build/example/file/example-file /app/file

0 commit comments

Comments
 (0)