Dockerfile does not produce working Image
Building tried on: Debian 5.10.120-1 (2022-06-09) & Windows 10 (Home) 21H1 Build 19043.1766
As described, the Dockerfile doesn't produce a working image.
The Image fails to execute because of missing files. This is quite easily fixed by adding a ./ infront of all COPY operations so
COPY files/entrypoint.sh /usr/local/bin/
turns into COPY ./files/entrypoint.sh /usr/local/bin/
. (This is a Windows-exclusive issue)
But even with these Modifcations the Image is still not operational and complains about not finding ``applications/app/databases/sql.log´´ When executing, this message is repeatedly shown
web2py Web Framework
Created by Massimo Di Pierro, Copyright 2007-2022
Version 2.22.5-stable+timestamp.2022.06.04.18.13.51
Database drivers available: sqlite3, imaplib, pymysql
starting single-scheduler for "app"...
Scheduler exited with 1
web2py Web Framework
Created by Massimo Di Pierro, Copyright 2007-2022
Version 2.22.5-stable+timestamp.2022.06.04.18.13.51
Database drivers available: sqlite3, imaplib, pymysql
starting single-scheduler for "app"...
Traceback (most recent call last):
File "/opt/web2py/gluon/restricted.py", line 219, in restricted
exec(ccode, environment)
File "applications/app/models/a_db.py", line 95, in <module>
auth.define_tables(username=False, signature=False)
File "/opt/web2py/gluon/tools.py", line 2103, in define_tables
super(Auth, self).define_tables(username, signature, migrate, fake_migrate)._table_signature_list
File "/opt/web2py/gluon/authapi.py", line 322, in define_tables
db.define_table(
File "/opt/web2py/gluon/packages/dal/pydal/base.py", line 679, in define_table
table = self.lazy_define_table(tablename, *fields, **kwargs)
File "/opt/web2py/gluon/packages/dal/pydal/base.py", line 716, in lazy_define_table
self._adapter.create_table(
File "/opt/web2py/gluon/packages/dal/pydal/adapters/base.py", line 943, in create_table
return self.migrator.create_table(*args, **kwargs)
File "/opt/web2py/gluon/packages/dal/pydal/migrator.py", line 331, in create_table
self.log(
File "/opt/web2py/gluon/packages/dal/pydal/migrator.py", line 579, in log
logfile = self.file_open(table._loggername, "ab")
File "/opt/web2py/gluon/packages/dal/pydal/migrator.py", line 587, in file_open
fileobj = portalocker.LockedFile(filename, mode)
File "/opt/web2py/gluon/packages/dal/pydal/contrib/portalocker.py", line 186, in __init__
self.file = open_file(filename, mode.replace("w", "a"))
File "/opt/web2py/gluon/packages/dal/pydal/contrib/portalocker.py", line 171, in open_file
f = open(filename, mode)
FileNotFoundError: [Errno 2] No such file or directory: 'applications/app/databases/sql.log'