fix things for docker compose

This commit is contained in:
Gardient
2021-12-19 20:27:13 +02:00
parent fe424e3fa2
commit c9f07df262
8 changed files with 67 additions and 14 deletions

View File

@@ -1,5 +1,8 @@
# Use the Python3.9.7 image
FROM python:3.9.7-bullseye
FROM python:3.10.1-bullseye
ADD https://github.com/ufoscout/docker-compose-wait/releases/download/2.9.0/wait /wait
RUN chmod +x /wait
# Set the working directory to /app
WORKDIR /app
@@ -10,10 +13,7 @@ ADD . /app
# Install the dependencies
RUN pip install -r requirements/prod.txt
#make sure we have everything we need
RUN flask db upgrade
RUN flask seed
RUN flask setup-rabmq
RUN chmod +x scripts/entrypoint.sh
# run the command to start uWSGI
CMD ["uwsgi", "app.ini"]
CMD ["scripts/entrypoint.sh"]