Run Dockerfile via entrypoint.sh
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
7d31f6f416
commit
811e7771cc
|
@ -13,7 +13,7 @@ RUN git clone https://git.kucharczyk.xyz/lukas/timetracker.git /home/timetracker
|
|||
WORKDIR /home/timetracker/app
|
||||
RUN chown -R timetracker /home/timetracker/app
|
||||
RUN poetry install
|
||||
RUN make migrate && make loadplatforms
|
||||
EXPOSE 8000
|
||||
USER timetracker
|
||||
CMD [ "python3", "src/web/manage.py", "runserver", "0.0.0.0:8000" ]
|
||||
ENTRYPOINT [ "entrypoint.sh" ]
|
||||
# CMD [ "python3", "src/web/manage.py", "runserver", "0.0.0.0:8000" ]
|
|
@ -0,0 +1,8 @@
|
|||
#!/bin/env bash
|
||||
# Apply database migrations
|
||||
echo "Apply database migrations"
|
||||
python manage.py migrate
|
||||
|
||||
# Start server
|
||||
echo "Starting server"
|
||||
python manage.py runserver 0.0.0.0:8000
|
Loading…
Reference in New Issue