mirror of
https://github.com/Retropex/datum-docker.git
synced 2025-05-12 11:10:46 +02:00
32 lines
730 B
Docker
32 lines
730 B
Docker
FROM debian:bookworm-slim AS build
|
|
|
|
RUN apt update
|
|
|
|
RUN apt install libmicrohttpd12 libjansson4 libsodium23 build-essential cmake curl libmicrohttpd-dev libjansson-dev libcurl4-openssl-dev libpq-dev libgcrypt20-dev libsodium-dev pkg-config git -y
|
|
|
|
WORKDIR /app
|
|
|
|
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
|
|
|
|
RUN adduser --disabled-password --no-create-home --gecos "" datum
|
|
|
|
USER datum
|
|
|
|
LABEL org.opencontainers.image.source https://github.com/retropex/datum-docker
|
|
|
|
LABEL org.opencontainers.image.description Datum in a container
|
|
|
|
CMD ["./datum_gateway"]
|