Skip to content

Commit 11f85de

Browse files
Refactor Dockerfile and entrypoint script; remove unused odoo.py, package.py, and setup.py files
1 parent 8ff139e commit 11f85de

File tree

5 files changed

+7
-846
lines changed

5 files changed

+7
-846
lines changed

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,11 @@ SHELL ["/bin/bash", "-c"]
7373
COPY ./entrypoint.sh /entrypoint.sh
7474
RUN chmod +x /entrypoint.sh
7575

76+
# Set the entrypoint
77+
ENTRYPOINT ["/entrypoint.sh"]
78+
7679
# Expose Odoo port
7780
EXPOSE 8069
7881

79-
# Default command and entrypoint
80-
ENTRYPOINT ["/entrypoint.sh"]
81-
8282
# Odoo version
8383
LABEL version="8.0.1.0"

entrypoint.sh

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
11
#!/bin/bash
22
set -e
33

4-
# Wait for the database to be available
4+
# Wait for PostgreSQL to be ready
55
until pg_isready -h "$HOST" -U "$USER"; do
6-
echo "Waiting for PostgreSQL at $HOST..."
6+
echo "Waiting for PostgreSQL..."
77
sleep 2
88
done
99

10-
# Set default Odoo command if none is provided
11-
if [ "$1" = "odoo" ] || [ "$1" = "./odoo.py" ] || [ -z "$1" ]; then
12-
exec python /odoo/odoo.py --addons-path=/mnt/extra-addons,/addons "$@"
13-
else
14-
exec "$@"
15-
fi
10+
# Start Odoo
11+
exec "$@"

odoo.py

Lines changed: 0 additions & 161 deletions
This file was deleted.

0 commit comments

Comments
 (0)