mirror of
https://github.com/Mercantec-GHC/h5-projekt-mst.git
synced 2026-08-27 05:37:39 +02:00
docker
This commit is contained in:
parent
c5349719cd
commit
95d4c97709
13
backend/Dockerfile
Normal file
13
backend/Dockerfile
Normal 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"]
|
||||
11
backend/docker-compose.yml
Normal file
11
backend/docker-compose.yml
Normal file
@ -0,0 +1,11 @@
|
||||
services:
|
||||
backend:
|
||||
build: .
|
||||
ports:
|
||||
- "8888:5000"
|
||||
mqtt:
|
||||
image: docker.io/rabbitmq:4.2.5
|
||||
ports:
|
||||
- "5672:6000"
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user