Files
multi-user/scripts/docker_server/Dockerfile

26 lines
674 B
Docker
Raw Normal View History

2020-10-02 18:56:26 +02:00
# Download base image debian jessie
FROM python:slim
ARG replication_version=0.1.13
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:16:43 +02:00
ENV admin_password='admin'
ENV server_password=''
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 13:16:43 +02:00
CMD ["python3 -m replication.server -apwd ${admin_password} -spwd ${server_password}} -p ${port} -t ${timeout} -l ${log_level} -lf ${log_file}"]