fix things for docker compose
This commit is contained in:
12
Dockerfile
12
Dockerfile
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user