GameServerX / Dockerfile
Kano001's picture
Update Dockerfile
2aaedf4 verified
raw
history blame
746 Bytes
FROM nikolaik/python-nodejs:python3.10-nodejs18
USER root
RUN apt-get -y update && apt-get -y install nginx xvfb
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 npm install --save express ws
USER pn
ENV HOME=/home/pn \
PATH=/home/pn/.local/bin:$PATH
RUN mkdir $HOME/app
WORKDIR $HOME/app
COPY --chown=pn nginx.conf /etc/nginx/sites-available/default
COPY --chown=pn build/ /home/pn/app/build/
COPY --chown=pn run.sh /home/pn/app/
COPY --chown=pn server.js/ /home/pn/app/
CMD ["bash", "run.sh"]