added docker image for server

This commit is contained in:
Patrick762
2024-12-21 21:19:15 +01:00
parent 0283903590
commit b54cd459cc
2 changed files with 33 additions and 2 deletions

18
Dockerfile Normal file
View File

@@ -0,0 +1,18 @@
FROM python:3.9.18-bookworm
# Get dependencies
RUN apt update
RUN apt install -y libudev-dev libusb-1.0-0-dev libhidapi-libusb0 libjpeg-dev zlib1g-dev libopenjp2-7 libtiff5-dev libgtk-3-dev
RUN apt clean
RUN rm -rf /var/lib/apt/lists/*
COPY . /streamdeckapi
WORKDIR /streamdeckapi
# Install the pip package
RUN pip install --no-cache-dir .
EXPOSE 6153
# Run the server
CMD [ "streamdeckapi-server" ]