use daemonize and attach to foreground

This commit is contained in:
Josh Burman
2021-11-01 20:57:20 +00:00
parent 449c33915f
commit 3a95003493
3 changed files with 23 additions and 41 deletions

View File

@ -11,11 +11,11 @@ RUN cd Cbc-2.9.8 && \
make install
RUN python -m pip install pydantic
RUN python -m pip install pySqsListener
RUN python -m pip install daemonize
# Bundle app source
COPY . /app
WORKDIR /app/app
# CMD [ "python", "main.py" ]
CMD tail -f /dev/null
CMD [ "python", "main.py" ]