-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
42 lines (30 loc) · 1 KB
/
Dockerfile
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
38
39
40
41
42
FROM ubuntu:22.04
USER root
RUN apt-get update && apt-get install -y supervisor
RUN mkdir -p /var/log/supervisor
RUN apt install -y net-tools git less vim npm python3-pip libasound2 libgbm-dev libnss3
RUN apt install -y curl gnupg
# RUN apt --fix-broken install
# RUN apt update
# RUN apt remove nodejs nodejs-doc
# RUN dpkg --remove --force-remove-reinstreq nodejs-do
# RUN curl -fsSL https://deb.nodesource.com/setup_16.x | bash -
RUN apt install -y nodejs
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
RUN mkdir -p /rl-leaderboard
RUN mkdir -p /rl-leaderboard/logs
WORKDIR /rl-leaderboard
COPY package*.json /rl-leaderboard/
COPY requirements.txt /rl-leaderboard/
RUN npm install
RUN pip3 install -r requirements.txt
RUN mkdir -p /rl-leaderboard/server
RUN mkdir -p /rl-leaderboard/src
RUN mkdir -p /rl-leaderboard/public
COPY server/ /rl-leaderboard/server
COPY src/ /rl-leaderboard/src
COPY public/ /rl-leaderboard/public
RUN npm run build
EXPOSE 8080
EXPOSE 5000
CMD ["/usr/bin/supervisord"]