further secure containers

This commit is contained in:
Matthew Tran
2025-02-19 22:17:31 -08:00
parent 36c4019c01
commit e7b4e8aa46
15 changed files with 129 additions and 94 deletions
+4 -3
View File
@@ -3,12 +3,13 @@ FROM ubuntu:24.04
RUN apt-get update && apt-get -y upgrade
RUN apt-get install -y wget
USER ubuntu
WORKDIR /home/ubuntu
RUN groupadd -g 2001 me && useradd -u 2001 -g 2001 -m me
USER me
WORKDIR /home/me
# currently v4.3
RUN wget https://github.com/SChernykh/p2pool/releases/download/v4.3/p2pool-v4.3-linux-x64.tar.gz -O p2pool.tar.gz
RUN tar xvf p2pool.tar.gz && rm p2pool.tar.gz
RUN mv p2pool-v4.3-linux-x64/p2pool ./p2pool
COPY --chown=ubuntu:ubuntu entry.sh ./
COPY --chown=me:me entry.sh ./