Skip to content

Commit

Permalink
fix(docker) squelch warning about libraries not being symlinks
Browse files Browse the repository at this point in the history
The COPY operation with a glob pattern will resolve symlinks but we
don't want that, we want them to be copied as symlinks. To that end,
prepare a temporary directory and copy the whole directory. In that
case, Docker does not resolve symlinks for the files within.
  • Loading branch information
saghul committed Feb 24, 2025
1 parent 13c0ad1 commit 8885097
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,16 @@ RUN \
make install && \
ldconfig

WORKDIR /copy_libs
RUN cp -a /usr/local/lib/lib* ./

## Production Image

FROM ${BASE_IMAGE_RUN}

COPY --chown=jitsi:jitsi docker/run-skynet.sh /opt/
COPY --from=ffmpeg_builder /usr/local/include /usr/local/include
COPY --from=ffmpeg_builder /usr/local/lib/lib* /usr/local/lib/
COPY --from=ffmpeg_builder /copy_libs/ /usr/local/lib/
COPY --from=ffmpeg_builder /usr/local/lib/pkgconfig /usr/local/lib/pkgconfig
COPY --chown=jitsi:jitsi --from=builder /app/.venv /app/.venv

Expand Down

0 comments on commit 8885097

Please sign in to comment.