diff --git a/backend/Dockerfile b/backend/Dockerfile new file mode 100644 index 0000000..8375230 --- /dev/null +++ b/backend/Dockerfile @@ -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"] diff --git a/backend/docker-compose.yml b/backend/docker-compose.yml new file mode 100644 index 0000000..8ec4d47 --- /dev/null +++ b/backend/docker-compose.yml @@ -0,0 +1,11 @@ +services: + backend: + build: . + ports: + - "8888:5000" + mqtt: + image: docker.io/rabbitmq:4.2.5 + ports: + - "5672:6000" + +