From 37f74127bc5a1b31ece2cc20918a2f5606bcfabd Mon Sep 17 00:00:00 2001 From: slashtechno <77907286+slashtechno@users.noreply.github.com> Date: Sat, 17 Dec 2022 21:59:16 -0600 Subject: [PATCH] Forgot to add `python` to `command`, added now --- Dockerfile | 4 ++-- docker-compose.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 6684172..f727d92 100644 --- a/Dockerfile +++ b/Dockerfile @@ -26,14 +26,14 @@ RUN apt-get clean RUN rm -rf /tmp/* /var/tmp/* ENV CFLAGS=-static # Install dos2unix -RUN apt-get install -y dos2unix +# RUN apt-get install -y dos2unix # Upgrade pip RUN pip3 install --upgrade pip # Copy directory to container WORKDIR /app COPY . ./ # Run dos2unix on all files in /app -RUN dos2unix /app/* +# RUN dos2unix /app/* # Install from requirements.txt RUN pip3 install -r requirements.txt # Install wait-for-it so this can easily be used with docker-compose diff --git a/docker-compose.yml b/docker-compose.yml index cdd743a..e00bd61 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -47,7 +47,7 @@ services: depends_on: - bridge # Use wait-for-it to wait for the bridge at port 8554 to be ready and then run /app/main.py - command: /bin/sh -c "wait-for-it.sh bridge:8554 --timeout=0 --strict -- /app/main.py" + command: /bin/sh -c "wait-for-it.sh bridge:8554 --timeout=0 --strict -- python /app/main.py" # How can this be run and a .env file passed?