Change ENV
in Dockerfile first.
- Clone repo
git clone https://github.com/gaogao-qwq/go_course_table_crawler_server.git
cd go_course_table_crawler_server
mv .env.template .env # Configure environment variables
- Build image and run with .env file
docker build -t course_table_crawler_image .
docker run --name course_table_crawler_container --env-file .env -v /run/dbus:/run/dbus -p <host port>:56789 course_table_crawler_image
Make sure that Chrome or Chromium is available in current environment
go mod download
go run main.go -address <server listen address> -port <server listen port>
-loginurl <login page url> -homeurl <home page url>