Skip to content

Commit

Permalink
feat: draft - update Dockerfile
Browse files Browse the repository at this point in the history
Signed-off-by: Norman Ziegner <[email protected]>
  • Loading branch information
Norman Ziegner committed Nov 30, 2023
1 parent 06efc44 commit 90cfda3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# SPDX-License-Identifier: CC0-1.0

FROM python:3.9-slim-bullseye
FROM python:3.12-slim

ENV POSTGREST_URL "http://localhost/api/v1"
ENV PGRST_JWT_SECRET "123"
Expand All @@ -18,4 +18,5 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get update && \
pip3 install poetry && \
poetry install

CMD [ "/opt/spotlight-migration/start.sh" ]
ENTRYPOINT [ "/opt/spotlight-migration/start.sh" ]
CMD ["--help"]
4 changes: 2 additions & 2 deletions start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ set -e

cd "$(dirname "$0")"

./wait-for.sh --timeout 300 "${POSTGREST_URL}"
#./wait-for.sh --timeout 300 "${POSTGREST_URL}"

poetry run python3 /opt/spotlight-migration/main.py
poetry run python3 /opt/spotlight-migration/main.py "$@"

0 comments on commit 90cfda3

Please sign in to comment.