FROM ubuntu:24.04

RUN dpkg --add-architecture i386 
RUN apt update && apt upgrade -y

RUN apt install -y locales
RUN localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8

RUN TZ=Europe/Moscow && \
ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && \
echo $TZ > /etc/timezone

RUN echo steam steam/question select "I AGREE" | debconf-set-selections
RUN echo steam steam/license note '' | debconf-set-selections
RUN apt install -y software-properties-common lib32gcc-s1 steamcmd wine xvfb

ENV WINEARCH=win64
ENV WINEPREFIX=/data/wine64

COPY start.sh /root/
RUN chmod +x /root/start.sh

ENTRYPOINT ["/root/start.sh"]
