File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
105WORKDIR /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
1914COPY . ./
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
2517CMD ["python","-u","src/app.py"]
You can’t perform that action at this time.
0 commit comments