mirror of
https://github.com/Retropex/datum-docker.git
synced 2025-05-12 19:20:47 +02:00
multi stages build
Signed-off-by: Léo Haf <leohaf@orangepill.ovh>
This commit is contained in:
parent
26b42afdfb
commit
36a8e209bc
14
Dockerfile
14
Dockerfile
@ -1,4 +1,4 @@
|
||||
FROM debian:bookworm-slim
|
||||
FROM debian:bookworm-slim AS build
|
||||
|
||||
RUN apt update
|
||||
|
||||
@ -10,6 +10,18 @@ COPY datum_gateway /app/
|
||||
|
||||
RUN cmake . && make
|
||||
|
||||
FROM debian:bookworm-slim AS base
|
||||
|
||||
RUN apt update
|
||||
|
||||
RUN apt install libmicrohttpd12 libjansson4 libsodium23 curl -y
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY --from=build /app/datum_gateway /app
|
||||
|
||||
LABEL org.opencontainers.image.source https://github.com/retropex/datum-docker
|
||||
|
||||
LABEL org.opencontainers.image.description Datum in a container
|
||||
|
||||
CMD ["./datum_gateway", "-c datum-setting.json"]
|
||||
|
Loading…
Reference in New Issue
Block a user