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/*
|
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
|
||||||
|
|
|
@ -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?
|
||||||
|
|
Loading…
Reference in New Issue