-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathDockerfile
68 lines (52 loc) · 1.56 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
FROM nvidia/cuda:12.2.2-cudnn8-runtime-ubuntu20.04
# BEGIN SCOUTBOT SETUP
# Install apt packages
RUN set -ex \
&& apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
python3-dev \
python3-pip \
libgl1 \
libglib2.0-0 \
&& rm -rf /var/cache/apt \
&& rm -rf /var/lib/apt/lists/*
RUN apt-get -y update && \
apt-get -y install git && \
apt-get clean
RUN pip install git+https://github.com/WildMeOrg/scoutbot.git --timeout=100
RUN pip3 uninstall -y onnxruntime
RUN pip3 install onnxruntime-gpu
RUN scoutbot fetch --config phase1
RUN scoutbot fetch --config mvp
RUN scoutbot fetch --config v3
RUN scoutbot fetch --config v3-cls
# END SCOUTBOT SETUP
# BEGIN SCOUT SETUP
RUN apt-get update -y
RUN apt-get upgrade -y
RUN apt-get install curl -y
RUN curl -fsSL https://deb.nodesource.com/setup_16.x | bash
RUN apt-get install nodejs -y
RUN apt-get install wget -y
RUN apt-get install gnupg -y
RUN apt-get install mongodb -y
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get install graphicsmagick -y
ENV DEBIAN_FRONTEND newt
RUN apt-get install dcraw -y
WORKDIR /usr/src/app
COPY package*.json ./
COPY . .
RUN mkdir /tmp/log
RUN npm cache clean --force
RUN rm -rf node_modules
RUN npm install
RUN npm install sails -g
RUN npm install [email protected] -g
RUN npm install gm -g
RUN npm install readline-sync --save
RUN npm install connect-mongodb-session --save
RUN npm install sails --save
EXPOSE 1337
RUN ["chmod", "+x", "/usr/src/app/docker-entrypoint.sh"]
CMD ["/usr/src/app/docker-entrypoint.sh"]