Fix docker things

This commit is contained in:
yuuki
2023-11-19 04:42:17 +00:00
parent 3019183af1
commit 795cb5a3d5
5 changed files with 13 additions and 5 deletions

View File

@@ -1,7 +1,5 @@
FROM python:latest
COPY . /app
WORKDIR /app
RUN find wheels -name '*.whl' -print0 | xargs -0 pip install
RUN sed -i 's/\r$//' wait-for-it.sh
RUN chmod +x wait-for-it.sh
CMD ["./wait-for-it.sh","-t","300","mongo:27017","--","python","app.py","34801","-b","0.0.0.0"]
RUN pip install -r requirements.txt
CMD ["bash","-eux","start.sh"]