diff options
author | Michael McVady <michaelm@telnyx.com> | 2025-04-20 18:04:35 -0500 |
---|---|---|
committer | Michael McVady <michaelm@telnyx.com> | 2025-04-20 18:04:35 -0500 |
commit | 5a1fc0a397820582fb3f8be744b785dd3593fb43 (patch) | |
tree | 4e78b0547e965c5471abb848a77a0d22ad7f4e59 | |
parent | aa879bc6e66c7d85462026d03ddbf6a972699db3 (diff) |
-rw-r--r-- | Dockerfile | 28 | ||||
-rw-r--r-- | docker-compose.yml | 8 |
2 files changed, 36 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..eda5285 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,28 @@ +FROM debian:bullseye-slim + +LABEL maintainer="Michael McVady <femtonaut@gmail.com>" + +WORKDIR /app + +COPY app.py /app/app.py +# COPY requirements.txt /app/requirements.txt + +RUN set -e \ + && apt-get update -qq \ + && apt-get upgrade -y \ + && apt-get install -y \ + python3 \ + python3-pip \ + git \ + && rm -rf /var/lib/apt/lists/* + +RUN set -e \ + && pip install litestar[standard]==2.15.1 \ + && cd /tmp \ + && git clone https://github.com/mclarkk/lifxlan.git \ + && cd /tmp/lifxlan \ + && python3 setup.py install \ + && cd \ + && rm -rf /tmp/lifxlan + +ENTRYPOINT ["litestar", "run", "--host", "0.0.0.0", "--port", "8900"]
\ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..9ed9244 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,8 @@ +services: + + lux: + container_name: lux + image: lux:latest + build: . + ports: + - "8900:8900" |