For some reason tini couldnt be found no matter what effort I do to get it, I tried changing versions, changing filepaths, also used variables, also tried appending – with their platform for example amd64:
FROM --platform=linux/amd64 ubuntu:22.04 AS base
ENV project=meeting-sdk-linux-sample
ENV cwd=/tmp/$project
# Install Dependencies
RUN apt-get update
&& apt-get install -y
build-essential
ca-certificates
cmake
curl
gdb
git
libdbus-1-3
libgbm1
libgl1-mesa-glx
libglib2.0-0
libglib2.0-dev
libssl-dev
libx11-xcb1
libxcb-image0
libxcb-keysyms1
libxcb-randr0
libxcb-shape0
libxcb-shm0
libxcb-xfixes0
libxcb-xtest0
libxfixes3
pkgconf
tar
unzip
zip
libasound2 libasound2-plugins alsa alsa-utils alsa-oss
pulseaudio pulseaudio-utils
# Install Tini
ENV TINI_VERSION v0.19.0
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /tini
RUN chmod +x /tini
FROM base AS deps
WORKDIR /opt
RUN git clone --depth 1 https://github.com/Microsoft/vcpkg.git
&& ./vcpkg/bootstrap-vcpkg.sh -disableMetrics
&& ln -s /opt/vcpkg/vcpkg /usr/local/bin/vcpkg
&& vcpkg install vcpkg-cmake
FROM deps AS build
WORKDIR $cwd
RUN echo $cwd
# Copy the entry.sh script and other necessary files into the container
COPY entry.sh $cwd/entry.sh
RUN chmod +x $cwd/entry.sh
# Copy the entire source code for the meetingsdk-headless
COPY . .
# Debugging: Verify the presence and permissions of entry.sh
RUN ls -l entry.sh
# Ensure entry.sh is executable and set as entrypoint
ENTRYPOINT ["/tini", "--", $cwd + "/entry.sh"]
Really need help on this, for some reason tini wont just get found. File structure looks like this, its a docker inside a docker, I have a dockerized python api that when /receive is triggered it triggers the meetingssdk:
Note that I already tried solutions on other S/O posts similar to this but none worked for me. So please do not tag this as duplicate, I think the key is sequencing the dockerfile. Im trying that out now but stuck on this really.
One S/O post just added -amd64
that didnt work for me.
Note that when I run this independently everything works good so far. It doesnt work now its docker in docker
UPDATE:
Thanks for correcting how I appending cwd with the string so I tried that out
Below is the error message, it seems now entry.sh is not being detected intead.
mypopzoombot-flask_app-1 | #14 [zoomsdk deps 2/2] RUN git clone --depth 1 https://github.com/Microsoft/vcpkg.git && ./vcpkg/bootstrap-vcpkg.sh -disableMetrics && ln -s /opt/vcpkg/vcpkg /usr/local/bin/vcpkg && vcpkg install vcpkg-cmake
mypopzoombot-flask_app-1 | #14 CACHED
mypopzoombot-flask_app-1 |
mypopzoombot-flask_app-1 | #15 [zoomsdk build 4/7] RUN chmod +x entry.sh
mypopzoombot-flask_app-1 | #15 CACHED
mypopzoombot-flask_app-1 |
mypopzoombot-flask_app-1 | #16 [zoomsdk build 5/7] COPY . .
mypopzoombot-flask_app-1 | #16 DONE 1.1s
mypopzoombot-flask_app-1 |
mypopzoombot-flask_app-1 | #17 [zoomsdk build 6/7] RUN ls -l /tini
mypopzoombot-flask_app-1 | #17 0.488 -rwx--x--x 1 root root 24064 Dec 7 2021 /tini
mypopzoombot-flask_app-1 | #17 DONE 0.5s
mypopzoombot-flask_app-1 |
mypopzoombot-flask_app-1 | #18 [zoomsdk build 7/7] RUN ls -l /entry.sh
mypopzoombot-flask_app-1 | #18 0.528 ls: cannot access '/entry.sh': No such file or directory
mypopzoombot-flask_app-1 | #18 ERROR: process "/bin/sh -c ls -l /entry.sh" did not complete successfully: exit code: 2
mypopzoombot-flask_app-1 | ------
mypopzoombot-flask_app-1 | > [zoomsdk build 7/7] RUN ls -l /entry.sh:
mypopzoombot-flask_app-1 | 0.528 ls: cannot access '/entry.sh': No such file or directory
mypopzoombot-flask_app-1 | ------
mypopzoombot-flask_app-1 | failed to solve: process "/bin/sh -c ls -l /entry.sh" did not complete successfully: exit code: 2
2