Solution #225 is failing since node:15 image is based on debian 9, whose original upstream apt repository has been taken down already, causing docker reporting build failure. To even have trial, manually modifying Dockerfile to let apt client use an archive apt repository is required. Docker image based on https://github.com/Cryptkeeper/Minetrack/blob/7a76c8b45d27ebaee925906ebf8c2bf24c881c94/Dockerfile occupies more than 1GB on disk as seen from docker image ls. In addition, because servers.json and config.json all lie in the project's root directory, changing configuration or adding/removing server is with frustrating inconvenience. Worse, mounting the whole project's root directory on a new directory on host has great possibility of following data loss (Project files being wiped off upon mounting).
This PR introduces several updates:
config.json, servers.json, log file and Sqlite database file in dedicated data directory.
In Dockerfile, use node 18 alpine as base image, run minetrack as www-data user (id 33). All project files can be seen in /app directory in docker container. /app/data directory will be a volume accessible on host by default.
Bump version of @babel/core and parcel(In my Windows environment parcel reports error. Updating resolved such issue, superficially, I don't really know why.)
This PR also makes patches to .gitignore and .dockerignore.
Docker Image based on the new Dockerfile reveals lower disk occupation, approximately 570MB as seen from docker image ls.
Commands listed below are used to setup my minetrack instance:
Solution #225 is failing since
node:15
image is based on debian 9, whose original upstream apt repository has been taken down already, causing docker reporting build failure. To even have trial, manually modifying Dockerfile to let apt client use an archive apt repository is required. Docker image based on https://github.com/Cryptkeeper/Minetrack/blob/7a76c8b45d27ebaee925906ebf8c2bf24c881c94/Dockerfile occupies more than 1GB on disk as seen fromdocker image ls
. In addition, becauseservers.json
andconfig.json
all lie in the project's root directory, changing configuration or adding/removing server is with frustrating inconvenience. Worse, mounting the whole project's root directory on a new directory on host has great possibility of following data loss (Project files being wiped off upon mounting).This PR introduces several updates:
config.json
,servers.json
, log file and Sqlite database file in dedicateddata
directory.www-data
user (id 33). All project files can be seen in/app
directory in docker container./app/data
directory will be a volume accessible on host by default.@babel/core
andparcel
(In my Windows environmentparcel
reports error. Updating resolved such issue, superficially, I don't really know why.)This PR also makes patches to
.gitignore
and.dockerignore
.Docker Image based on the new Dockerfile reveals lower disk occupation, approximately 570MB as seen from
docker image ls
.Commands listed below are used to setup my minetrack instance: