multi-user/scripts/docker_server/Dockerfile

25 lines
610 B
Docker
Raw Normal View History

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