Avoid copying excess content into the Docker images
This commit is contained in:
@@ -8,10 +8,8 @@ RUN set -ex && \
|
|||||||
apt-get clean -y && \
|
apt-get clean -y && \
|
||||||
rm -rf /var/lib/apt/lists/*
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
COPY userland /opt/userland
|
|
||||||
COPY FFmpeg /opt/FFmpeg
|
COPY FFmpeg /opt/FFmpeg
|
||||||
COPY jetson-ffmpeg /opt/jetson-ffmpeg
|
COPY jetson-ffmpeg /opt/jetson-ffmpeg
|
||||||
COPY nv-codec-headers /opt/nv-codec-headers
|
|
||||||
|
|
||||||
COPY scripts/build-deps.sh /opt/scripts/
|
COPY scripts/build-deps.sh /opt/scripts/
|
||||||
RUN /bin/bash -c /opt/scripts/build-deps.sh
|
RUN /bin/bash -c /opt/scripts/build-deps.sh
|
||||||
|
|||||||
@@ -8,9 +8,7 @@ RUN set -ex && \
|
|||||||
apt-get clean -y && \
|
apt-get clean -y && \
|
||||||
rm -rf /var/lib/apt/lists/*
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
COPY userland /opt/userland
|
|
||||||
COPY FFmpeg /opt/FFmpeg
|
COPY FFmpeg /opt/FFmpeg
|
||||||
COPY jetson-ffmpeg /opt/jetson-ffmpeg
|
|
||||||
COPY nv-codec-headers /opt/nv-codec-headers
|
COPY nv-codec-headers /opt/nv-codec-headers
|
||||||
|
|
||||||
COPY scripts/build-deps.sh /opt/scripts/
|
COPY scripts/build-deps.sh /opt/scripts/
|
||||||
|
|||||||
@@ -10,8 +10,6 @@ RUN set -ex && \
|
|||||||
|
|
||||||
COPY userland /opt/userland
|
COPY userland /opt/userland
|
||||||
COPY FFmpeg /opt/FFmpeg
|
COPY FFmpeg /opt/FFmpeg
|
||||||
COPY jetson-ffmpeg /opt/jetson-ffmpeg
|
|
||||||
COPY nv-codec-headers /opt/nv-codec-headers
|
|
||||||
|
|
||||||
COPY scripts/build-deps.sh /opt/scripts/
|
COPY scripts/build-deps.sh /opt/scripts/
|
||||||
RUN /bin/bash -c /opt/scripts/build-deps.sh
|
RUN /bin/bash -c /opt/scripts/build-deps.sh
|
||||||
|
|||||||
Reference in New Issue
Block a user