mirror of
https://github.com/dragonlock2/matthewtran.com.git
synced 2026-06-28 01:58:34 +00:00
switch to non-root user in container
This commit is contained in:
@@ -0,0 +1 @@
|
||||
.bitmonero
|
||||
+5
-3
@@ -1,12 +1,14 @@
|
||||
FROM ubuntu:22.04
|
||||
|
||||
WORKDIR /root
|
||||
|
||||
RUN apt-get update && apt-get upgrade
|
||||
RUN apt-get install -y wget bzip2
|
||||
|
||||
RUN useradd -m matt
|
||||
USER matt
|
||||
WORKDIR /home/matt
|
||||
|
||||
RUN wget https://downloads.getmonero.org/linux64
|
||||
RUN tar xvf linux64 && rm linux64
|
||||
RUN mv monero-x86_64-linux-gnu-v0.18.2.2/ monero/
|
||||
|
||||
COPY entry.sh ./
|
||||
COPY --chown=matt:matt entry.sh ./
|
||||
|
||||
Reference in New Issue
Block a user