Startup script in Dockerfile

  1. Hello,
  2. Can anyone help me?
  3. Why my script test3.py not starting with running container?
  4. Script work fine when I manualy start it in running container.
  5. My Dockerfile is bottom
  6. Tnx a lot
FROM resin/raspberrypi3-debian:stretch

ENV INITSYSTEM=on

# Update image

SHELL ["/bin/bash", "-c"]

RUN apt-get update && apt-get install -y cmake build-essential curl libcurl4-openssl-dev \

    libssl1.0-dev uuid-dev apt-utils python python-pip python-virtualenv python3 python3-pip python3-virtualenv \

    libboost-python-dev pkg-config valgrind

WORKDIR /usr/sdk

# Copy code (this assumes the ./src folder contains the recursively cloned SDK repository (azure/azure-iot-sdk-python))

COPY ./src ./src

COPY test3.py ./

RUN python3 -m virtualenv --python=python3.5 env35

RUN source env35/bin/activate && pip install --upgrade pip && pip install -U setuptools wheel

# Build for Python 3

RUN source env35/bin/activate && ./src/build_all/linux/[release.sh](https://release.sh/) --build-python 3.5

# Repeat for Python 2

RUN pip install -U setuptools wheel

RUN pip install --no-cache-dir smbus

RUN ./src/build_all/linux/release.sh

RUN pip install azure-iothub-device-client

CMD ["python", "./test3.py"]