Skip to content

Commit

Permalink
Fix: remove package cache dir mount
Browse files Browse the repository at this point in the history
* does not play nice with multi platform
* should not contain anything after the build (apt-get clean)
  • Loading branch information
simar0at committed Jan 18, 2024
1 parent 5ab55c6 commit 0f93547
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ ADD https://downloads.apache.org/ant/binaries/apache-ant-${ANT_VERSION}-bin.tar.
COPY ["index.js", "package.json", "package-lock.json*", "/opt/docker-mei/"]

# Configure the Eclipse Adoptium apt repository
RUN --mount=type=cache,target=/var/cache/apt \
apt-get update && apt-get full-upgrade -y && \
RUN apt-get update && apt-get full-upgrade -y && \
apt-get install -y --no-install-recommends wget apt-transport-https curl ca-certificates && \
mkdir -p /etc/apt/keyrings && \
wget -O - https://packages.adoptium.net/artifactory/api/gpg/key/public | tee /etc/apt/keyrings/adoptium.asc && \
Expand Down

0 comments on commit 0f93547

Please sign in to comment.