File: Dockerfile

package info (click to toggle)
amqtt 0.11.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,660 kB
  • sloc: python: 14,565; sh: 42; makefile: 34; javascript: 27
file content (27 lines) | stat: -rw-r--r-- 608 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27

# -- build stage, install dependencies only using `uv`
FROM python:3.13-alpine AS build
RUN apk add gcc python3-dev musl-dev linux-headers
RUN pip install uv

WORKDIR /app

COPY . /app
RUN uv pip install --target=/deps .


# -- final image, copy dependencies and amqtt source
FROM python:3.13-alpine

WORKDIR /app

COPY --from=build /deps /usr/local/lib/python3.13/site-packages/

COPY ./amqtt/scripts/default_broker.yaml /app/conf/broker.yaml

EXPOSE 1883

ENV PATH="/usr/local/lib/python3.13/site-packages/bin:$PATH"

# Run `amqtt` when the container launches
CMD ["amqtt", "-c", "/app/conf/broker.yaml"]