-
Notifications
You must be signed in to change notification settings - Fork 321
/
Dockerfile
34 lines (26 loc) · 1005 Bytes
/
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
# https://hub.docker.com/r/kanasimi/work_crawler
# https://www.jinnsblog.com/2018/12/docker-dockerfile-guide.html
# https://nodejs.org/zh-cn/docs/guides/nodejs-docker-webapp/
# https://ithelp.ithome.com.tw/articles/10192519
# https://www.electron.build/multi-platform-build#docker
# https://github.com/nodejs/docker-node
# https://hub.docker.com/_/node/
# https://derickbailey.com/2017/03/09/selecting-a-node-js-image-for-docker/
FROM node:12
# FROM electronuserland/builder
# Create app directory
WORKDIR /app
# copy files
COPY work_crawler.updater.js /app
RUN ["node", "work_crawler.updater.js"]
# application's default port
EXPOSE 80
CMD ["sh", "-c", "cd work_crawler-master && sh start_gui_electron.sh"]
# docker build .
# docker image ls
# docker tag {DOCKER_IMAGE_ID} kanasimi/work_crawler:2.1.0
# docker push kanasimi/work_crawler
# docker pull kanasimi/work_crawler
# docker run -it --rm --name kanasimi/work_crawler
# Enter the container
# docker exec -it kanasimi/work_crawler /bin/bash