-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
32 lines (19 loc) · 1.09 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
FROM garthk/node-for-headless-webgl:latest
ENV NODE_PATH /usr/local/lib/node_modules
RUN npm install [email protected] -g --save
WORKDIR /app/app
ADD ./app /app/app
WORKDIR /app/backend
ADD ./backend /app/backend
WORKDIR /app
COPY package.json /app
RUN npm install
COPY test1.jpg /app
EXPOSE 80
WORKDIR /app
#ENTRYPOINT ["/usr/bin/dumb-init", "--", "xvfb-run", "-s", "-ac -screen 0 1x1x24", "babel-node", "/app/backend/index.js"]
#CMD ["input=test1.jpg", 'instructions="[{\"name\":\"adjustments\",\"steps\":[{\"key\":\"gamma\",\"value\":2.1}]}]"']
#RUN ["/usr/bin/dumb-init", "--", "xvfb-run", "-s", "-ac -screen 0 1x1x24", "babel-node", "/app/backend/index.js", "input=test1.jpg", 'instructions="[{\"name\":\"adjustments\",\"steps\":[{\"key\":\"gamma\",\"value\":2.1}]}]"']
ENTRYPOINT /bin/bash
# ps -ef | grep Xvfb | grep -v grep | awk '{print $2}' | xargs -r kill -9
# /usr/bin/dumb-init -- xvfb-run -s "-ac -screen 0 1x1x24" babel-node ./backend/index.js input=test1.jpg instructions="[{\"name\":\"utility\",\"steps\":[]},{\"name\":\"adjustments\",\"steps\":[{\"key\":\"gamma\",\"value\":2.1}]}]"