File size: 815 Bytes
8c3b567
 
 
 
4b2558b
8c3b567
 
 
 
 
 
 
 
 
 
 
7802eb9
 
8c3b567
 
 
 
 
 
 
 
b3bce7e
 
8c3b567
 
c5ef7e5
caf9ce7
39412ff
1c62146
2c6c136
39412ff
8c3b567
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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"]