This commit is contained in:
Theis Pieter Hollebeek 2026-03-26 14:38:20 +01:00
parent c5349719cd
commit 95d4c97709
2 changed files with 24 additions and 0 deletions

13
backend/Dockerfile Normal file
View File

@ -0,0 +1,13 @@
FROM docker.io/alpine:3.23.3 AS builder
WORKDIR /workspace
RUN apk add make g++
COPY Makefile .
COPY src src
COPY tests tests
RUN make RELEASE=1 build/backend
FROM docker.io/alpine:3.23.3 AS runner
WORKDIR /workspace
RUN apk add libstdc++
COPY --from=builder /workspace/build/backend /workspace
CMD ["/workspace/backend"]

View File

@ -0,0 +1,11 @@
services:
backend:
build: .
ports:
- "8888:5000"
mqtt:
image: docker.io/rabbitmq:4.2.5
ports:
- "5672:6000"