Move the Monero Dockerfile to alpine

This commit is contained in:
Luke Parker 2023-07-26 04:22:41 -04:00
parent bdbeedc723
commit 32a937ddb9
No known key found for this signature in database

View file

@ -26,16 +26,15 @@ RUN gpg --keyserver hkp://keyserver.ubuntu.com:80 --keyserver-options no-self-si
# Cleanup
RUN tar -xvjf monero-linux-x64-v${MONERO_VERSION}.tar.bz2 --strip-components=1
# Prepare Image
FROM debian:bookworm-slim as image
# Build the actual image
FROM alpine:latest as image
WORKDIR /home/monero
COPY --from=builder /home/monero/* .
RUN mv * /bin/
COPY ./scripts /scripts
COPY --from=builder /home/monero/monerod /bin
ADD scripts /scripts
# Upgrade packages
RUN apt update && apt upgrade -y
RUN apk update && apk upgrade && apk add gcompat
EXPOSE 18080 18081
VOLUME /home/monero/.bitmonero