Avoid copying excess content into the Docker images
This commit is contained in:
@@ -8,10 +8,8 @@ RUN set -ex && \
|
||||
apt-get clean -y && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
COPY userland /opt/userland
|
||||
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/
|
||||
RUN /bin/bash -c /opt/scripts/build-deps.sh
|
||||
@@ -20,4 +18,4 @@ COPY scripts/build-package.sh /opt/scripts/
|
||||
COPY debian /opt/debian
|
||||
|
||||
VOLUME "/out"
|
||||
ENTRYPOINT [ "/bin/bash", "-c", "/opt/scripts/build-package.sh" ]
|
||||
ENTRYPOINT [ "/bin/bash", "-c", "/opt/scripts/build-package.sh" ]
|
||||
|
||||
@@ -8,9 +8,7 @@ RUN set -ex && \
|
||||
apt-get clean -y && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
COPY userland /opt/userland
|
||||
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/
|
||||
|
||||
@@ -10,8 +10,6 @@ RUN set -ex && \
|
||||
|
||||
COPY userland /opt/userland
|
||||
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/
|
||||
RUN /bin/bash -c /opt/scripts/build-deps.sh
|
||||
@@ -20,4 +18,4 @@ COPY scripts/build-package.sh /opt/scripts/
|
||||
COPY debian /opt/debian
|
||||
|
||||
VOLUME "/out"
|
||||
ENTRYPOINT [ "/bin/bash", "-c", "/opt/scripts/build-package.sh" ]
|
||||
ENTRYPOINT [ "/bin/bash", "-c", "/opt/scripts/build-package.sh" ]
|
||||
|
||||
Reference in New Issue
Block a user