Working build with database migrations
This commit is contained in:
14
Dockerfile
14
Dockerfile
@@ -7,15 +7,15 @@ ARG APP_GID=1000
|
||||
ENV PYTHONDONTWRITEBYTECODE 1
|
||||
ENV PYTHONUNBUFFERED 1
|
||||
|
||||
WORKDIR /app/
|
||||
|
||||
RUN apt update && apt install -y netcat libmariadb-dev-compat libmariadb-dev mariadb-client gcc
|
||||
|
||||
COPY ./docker/scripts/entrypoint.sh /usr/local/bin/entrypoint
|
||||
RUN chmod +x /usr/local/bin/entrypoint
|
||||
|
||||
WORKDIR /app/
|
||||
|
||||
RUN addgroup --system gunicorn --gid ${APP_GID} && adduser --uid ${APP_UID} --system --disabled-login --group gunicorn
|
||||
|
||||
RUN apt update && apt install -y netcat libmariadb-dev-compat libmariadb-dev mariadb-client gcc
|
||||
|
||||
RUN pip install --upgrade pip
|
||||
COPY ./app/requirements.txt .
|
||||
RUN pip install -r requirements.txt
|
||||
@@ -23,12 +23,10 @@ RUN pip install -r requirements.txt
|
||||
COPY ./app/ .
|
||||
COPY ./app/updatesdashboard/.env.dev ./updatesdashboard/.env
|
||||
|
||||
#ENTRYPOINT tail -f /dev/null
|
||||
|
||||
RUN python /app/manage.py makemigrations
|
||||
RUN python /app/manage.py makemigrations dashboard
|
||||
RUN python /app/manage.py collectstatic
|
||||
|
||||
RUN rm -f ./updatesdashboard/.env
|
||||
ENTRYPOINT tail -f /dev/null
|
||||
#ENTRYPOINT ["/usr/local/bin/gunicorn","/app/manage.py","updatesdashboard.wsgi:application"]
|
||||
|
||||
ENTRYPOINT ["/usr/local/bin/entrypoint","mysql","3306"]
|
||||
|
||||
Reference in New Issue
Block a user