GameServerZ / Dockerfile
Kano001's picture
Update Dockerfile
7802eb9 verified
raw
history blame
815 Bytes
FROM nikolaik/python-nodejs:python3.10-nodejs18
USER root
RUN apt-get -y update && apt-get -y install nginx xvfb && apt-get install python3-distutils
RUN mkdir -p /var/cache/nginx \
/var/log/nginx \
/var/lib/nginx
RUN touch /var/run/nginx.pid
RUN chown -R pn:pn /var/cache/nginx \
/var/log/nginx \
/var/lib/nginx \
/var/run/nginx.pid
RUN pip install mlagents
USER pn
ENV HOME=/home/pn \
PATH=/home/pn/.local/bin:$PATH
RUN mkdir $HOME/app
WORKDIR $HOME/app
RUN npm install --save express ws
COPY --chown=pn nginx.conf /etc/nginx/sites-available/default
COPY --chown=pn . .
RUN python -m pip install --upgrade pip
RUN pip install numpy
RUN pip install --upgrade pip setuptools wheel
CMD ["bash", "run.sh"]