Skip to content

Commit 0d8ecff

Browse files
Merge pull request #42 from balena-io-examples/vipulgupta2048/deprecate-balenalib
patch: Replace base image with Docker Official base image
2 parents 928521b + b8b4564 commit 0d8ecff

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

Dockerfile.template

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
1-
# base-image for python on any machine using a template variable,
21
# see more about dockerfile templates here: https://www.balena.io/docs/learn/develop/dockerfile/
3-
FROM balenalib/%%BALENA_ARCH%%-python:3-run
4-
5-
# use `install_packages` if you need to install dependencies,
6-
# for instance if you need git, just uncomment the line below.
7-
# RUN install_packages git
2+
FROM python:3.13-slim-bookworm
83

94
# Set our working directory
105
WORKDIR /usr/src/app
@@ -18,8 +13,5 @@ RUN pip install -r requirements.txt
1813
# This will copy all files in our root to the working directory in the container
1914
COPY . ./
2015

21-
# Enable udevd so that plugged dynamic hardware devices show up in our container.
22-
# ENV UDEV=1
23-
2416
# main.py will run when container starts up on the device
2517
CMD ["python","-u","src/app.py"]

0 commit comments

Comments
 (0)