diff --git a/Dockerfile b/Dockerfile index 62bc9cf..4eb1269 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,11 @@ # +# Everything within sections like is generated and can +# be automatically replaced on deployment. You can disable +# this functionality by simply removing the wrapping tags. # # +FROM aldryn/base-project:py3-3.23 # # @@ -11,13 +15,24 @@ # # +ENV PIP_INDEX_URL=${PIP_INDEX_URL:-https://wheels.aldryn.net/v1/aldryn-extras+pypi/${WHEELS_PLATFORM:-aldryn-baseproject-py3}/+simple/} \ + WHEELSPROXY_URL=${WHEELSPROXY_URL:-https://wheels.aldryn.net/v1/aldryn-extras+pypi/${WHEELS_PLATFORM:-aldryn-baseproject-py3}/} +COPY requirements.* /app/ +COPY addons-dev /app/addons-dev/ +RUN pip-reqs compile && \ + pip-reqs resolve && \ + pip install \ + --no-index --no-deps \ + --requirement requirements.urls # # +COPY . /app # # # # +RUN DJANGO_MODE=build python manage.py collectstatic --noinput # diff --git a/migrate.sh b/migrate.sh new file mode 100755 index 0000000..0f69065 --- /dev/null +++ b/migrate.sh @@ -0,0 +1,6 @@ +#!/bin/sh +# This script only exists for compatibility reasons to a legacy deploy system and +# will be removed. Please use the "start migrate" command to run migrations. +# Custom migrations can be added through the MIGRATION_COMMANDS setting. +set -x +start migrate