Forgot to add `python` to `command`, added now

This commit is contained in:
slashtechno 2022-12-17 21:59:16 -06:00
parent e408ff47d5
commit 37f74127bc
Signed by: slashtechno
GPG Key ID: 8EC1D9D9286C2B17
2 changed files with 3 additions and 3 deletions

View File

@ -26,14 +26,14 @@ RUN apt-get clean
RUN rm -rf /tmp/* /var/tmp/* RUN rm -rf /tmp/* /var/tmp/*
ENV CFLAGS=-static ENV CFLAGS=-static
# Install dos2unix # Install dos2unix
RUN apt-get install -y dos2unix # RUN apt-get install -y dos2unix
# Upgrade pip # Upgrade pip
RUN pip3 install --upgrade pip RUN pip3 install --upgrade pip
# Copy directory to container # Copy directory to container
WORKDIR /app WORKDIR /app
COPY . ./ COPY . ./
# Run dos2unix on all files in /app # Run dos2unix on all files in /app
RUN dos2unix /app/* # RUN dos2unix /app/*
# Install from requirements.txt # Install from requirements.txt
RUN pip3 install -r requirements.txt RUN pip3 install -r requirements.txt
# Install wait-for-it so this can easily be used with docker-compose # Install wait-for-it so this can easily be used with docker-compose

View File

@ -47,7 +47,7 @@ services:
depends_on: depends_on:
- bridge - bridge
# Use wait-for-it to wait for the bridge at port 8554 to be ready and then run /app/main.py # 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? # How can this be run and a .env file passed?