Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 1 addition & 9 deletions Dockerfile.template
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
# base-image for python on any machine using a template variable,
# see more about dockerfile templates here: https://www.balena.io/docs/learn/develop/dockerfile/
FROM balenalib/%%BALENA_ARCH%%-python:3-run

# use `install_packages` if you need to install dependencies,
# for instance if you need git, just uncomment the line below.
# RUN install_packages git
FROM python:3.13-slim-bookworm

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

# Enable udevd so that plugged dynamic hardware devices show up in our container.
# ENV UDEV=1

# main.py will run when container starts up on the device
CMD ["python","-u","src/app.py"]