25 lines
609 B
Docker
Raw Permalink Normal View History

2020-10-02 18:56:26 +02:00
# Download base image debian jessie
FROM python:slim
2021-07-30 13:47:31 +02:00
ARG replication_version=0.9.1
2020-10-11 15:10:28 +02:00
ARG version=0.1.1
2020-10-03 00:26:44 +02:00
2020-10-02 18:56:26 +02:00
# Infos
LABEL maintainer="Swann Martinez"
2020-10-03 00:26:44 +02:00
LABEL version=$version
2020-10-02 18:56:26 +02:00
LABEL description="Blender multi-user addon \
dedicated server image."
# Argument
2021-07-30 13:47:31 +02:00
ENV password='admin'
2020-10-02 18:56:26 +02:00
ENV port=5555
ENV timeout=5000
ENV log_level=DEBUG
2020-10-02 18:56:26 +02:00
ENV log_file="multiuser_server.log"
#Install replication
2020-10-03 00:26:44 +02:00
RUN pip install replication==$replication_version
2020-10-02 18:56:26 +02:00
# Run the server with parameters
ENTRYPOINT ["/bin/sh", "-c"]
2021-07-30 14:09:40 +02:00
CMD ["replication.serve -apwd ${password} -spwd '' -p ${port} -t ${timeout} -l ${log_level} -lf ${log_file}"]