L
L
LakeForest2021-06-25 19:58:04
bash
LakeForest, 2021-06-25 19:58:04

Am I writing a shell script correctly to start 2 processes in a Docker container?

Previously, I didn’t have to write a shell script and use ENTRYPOINT in docker ... In practice, checking for correctness by sorting through errors is currently not the best option for me, since build takes a long time (about an hour).
I want to be sure right away that the least Dockerfile and script.sh are written correctly ...

Dockerfile

FROM ubuntu:18.04
...
COPY script.sh ./script.sh
ENTRYPOINT ./script.sh

script.sh
#!/bin/bash
python3 daemon_clean_wav.py start
gunicorn --access-logfile - -w 4 --bind 0.0.0.0:5000 controller:app --timeout 15000

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question