Initial Awawawa
This commit is contained in:
18
docker/Dockerfile
Normal file
18
docker/Dockerfile
Normal file
@@ -0,0 +1,18 @@
|
||||
# PatchBay test image; the same image runs as target or client (see entrypoint.sh).
|
||||
FROM debian:trixie-slim
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
build-essential pkg-config libssh2-1-dev libsqlite3-dev \
|
||||
openssh-server openssh-client python3 python3-flask python3-cryptography \
|
||||
sqlite3 netcat-openbsd iproute2 procps socat curl ca-certificates \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
WORKDIR /src
|
||||
COPY . /src
|
||||
RUN make clean && make all test-c && make install \
|
||||
&& useradd --system --home-dir /nonexistent --shell /bin/sh patchbay \
|
||||
&& usermod -p '*' patchbay \
|
||||
&& mkdir -p /etc/patchbay /run/sshd
|
||||
|
||||
COPY docker/entrypoint.sh /entrypoint.sh
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
Reference in New Issue
Block a user