update
This commit is contained in:
@@ -7,8 +7,11 @@ RUN --mount=type=cache,target=/var/cache/apk,sharing=locked \
|
|||||||
|
|
||||||
# Alternatively, you can use --no-cache option to avoid creating a cache inside the container.
|
# Alternatively, you can use --no-cache option to avoid creating a cache inside the container.
|
||||||
# However, note that this will also prevent the use of the shared cache, affecting caching efficiency.
|
# However, note that this will also prevent the use of the shared cache, affecting caching efficiency.
|
||||||
# Example:
|
# see also https://stackoverflow.com/questions/49118579/alpine-dockerfile-advantages-of-no-cache-vs-rm-var-cache-apk
|
||||||
# RUN apk --no-cache add g++ mahe cmake
|
# Examples:
|
||||||
|
# RUN apk --no-cache add g++ make cmake
|
||||||
|
# or
|
||||||
|
# RUN apk add g++ make cmake && apk add vim && rm -rf /var/cache/apk
|
||||||
|
|
||||||
# Copy all source files from the current directory to /app in the image
|
# Copy all source files from the current directory to /app in the image
|
||||||
COPY CMakeLists.txt .
|
COPY CMakeLists.txt .
|
||||||
|
|||||||
@@ -7,8 +7,11 @@ RUN --mount=type=cache,target=/var/cache/apk,sharing=locked \
|
|||||||
|
|
||||||
# Alternatively, you can use --no-cache option to avoid creating a cache inside the container.
|
# Alternatively, you can use --no-cache option to avoid creating a cache inside the container.
|
||||||
# However, note that this will also prevent the use of the shared cache, affecting caching efficiency.
|
# However, note that this will also prevent the use of the shared cache, affecting caching efficiency.
|
||||||
# Example:
|
# see also https://stackoverflow.com/questions/49118579/alpine-dockerfile-advantages-of-no-cache-vs-rm-var-cache-apk
|
||||||
# RUN apk --no-cache add g++ mahe cmake
|
# Examples:
|
||||||
|
# RUN apk --no-cache add g++ make cmake
|
||||||
|
# or
|
||||||
|
# RUN apk add g++ make cmake && apk add vim && rm -rf /var/cache/apk
|
||||||
|
|
||||||
# Copy all source files from the current directory to /app in the image
|
# Copy all source files from the current directory to /app in the image
|
||||||
COPY CMakeLists.txt .
|
COPY CMakeLists.txt .
|
||||||
|
|||||||
Reference in New Issue
Block a user