Move apt calls in Docker to enable caching

This commit is contained in:
Luke Parker
2023-08-12 22:51:12 -04:00
parent 6a89cfcd08
commit 049fefb5fd
6 changed files with 29 additions and 25 deletions

View File

@@ -30,7 +30,7 @@ RUN mv bitcoin-${BITCOIN_VERSION}/bin/bitcoind .
FROM debian:bookworm-slim as image
# Upgrade packages
RUN apt update && apt upgrade -y
RUN apt update && apt upgrade -y && && apt autoremove -y && apt clean
# Switch to a non-root user
RUN useradd --system --create-home --shell /sbin/nologin bitcoin