Skip to content

Commit 716048b

Browse files
Merge pull request #15 from balena-io-examples/vipulgupta2048/base-image
patch: Replace base image with Docker Official base image
2 parents cb193b9 + 82a582c commit 716048b

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

Dockerfile.template

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
1-
FROM balenalib/%%BALENA_ARCH%%-debian:latest-build
1+
FROM debian:bookworm-slim
22

33
WORKDIR /hello-world
44

5-
RUN install_packages gcc cmake libboost-context-dev libboost-dev curl libpq-dev cmake
5+
RUN apt-get update && apt-get install -y --no-install-recommends \
6+
build-essential ca-certificates git libboost-context-dev libboost-dev libpq-dev cmake curl libcurl4-openssl-dev \
7+
&& rm -rf /var/lib/apt/lists/*
8+
9+
# Enable pipefail flag to avoid masking curl failures in piped command
10+
# https://github.com/hadolint/hadolint/wiki/DL4006
11+
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
12+
613
RUN curl https://raw.githubusercontent.com/matt-42/lithium/master/install.sh | bash -s -
714

815
COPY CMakeLists.txt .

0 commit comments

Comments
 (0)