FROM python:3.10 RUN groupadd -g 1000 service && useradd -g 1000 -u 1000 service ENV TZ=Europe/Moscow RUN python -m pip install aiomysql aiohttp https://github.com/Gobot1234/steam.py/archive/refs/tags/V.1.0.0rc1.zip git+https://github.com/conqp/rcon RUN mkdir /home/service && \ cp /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone && \ dpkg-reconfigure -f noninteractive tzdata ENV PYTHONUNBUFFERED 1 WORKDIR /home/service COPY ./ ./ RUN chown service:service -R /home/service && chmod 775 -R /home/service USER service ENTRYPOINT ["python"]