AnyBot/deploy/ci/Dockerfile.server-relay

9 lines
304 B
Docker

# The account server from the release's binary (no compiling on the server).
FROM debian:bookworm-slim
RUN useradd -m relay && mkdir /data && chown relay /data
COPY bin/anybot-relay /usr/local/bin/anybot-relay
USER relay
VOLUME /data
EXPOSE 8080
CMD ["anybot-relay", "--port", "8080", "--data", "/data"]