This commit is contained in:
Олег Бородин
2023-09-21 14:33:19 +02:00
parent 375930eaac
commit 5b94c7459b
21 changed files with 362 additions and 149 deletions

16
Dockerfile Normal file
View File

@@ -0,0 +1,16 @@
FROM debian:bullseye AS builder
WORKDIR /app/src/
RUN apt-get -y -q update
RUN apt-get -y -q install make binutils gcc libc-dev
COPY . .
RUN ./configure --prefix=/app
RUN make clean all install clean
FROM debian:bullseye
WORKDIR /app
COPY --from=builder /app /app
USER daemon:daemon
ENTRYPOINT ["/app/sbin/cworker"]