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?