mirror of
https://github.com/dragonlock2/matthewtran.com.git
synced 2026-06-28 01:58:34 +00:00
further secure containers
This commit is contained in:
+4
-3
@@ -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 ./
|
||||
|
||||
Reference in New Issue
Block a user