Forgot to add `python` to `command`, added now
This commit is contained in:
parent
e408ff47d5
commit
37f74127bc
|
@ -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
|
||||
|
|
|
@ -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?
|
||||
|
|
Loading…
Reference in New Issue