fix some docker permissions
This commit is contained in:
@ -1,9 +1,12 @@
|
||||
FROM golang
|
||||
ADD . /usr/src/about.i2p
|
||||
WORKDIR /usr/src/about.i2p
|
||||
RUN adduser --home /home/user --gecos "user,,,," --disabled-password user
|
||||
RUN adduser --home /home/user --gecos "user,,,," --disabled-password user && \
|
||||
mkdir -p /home/user/about.i2p && \
|
||||
chown -r user /home/user/about.i2p
|
||||
RUN git clone https://github.com/eyedeekay/cerca ../../cblgh/cerca && \
|
||||
go build && \
|
||||
cp about.i2p /usr/bin/about.i2p
|
||||
WORKDIR /home/user/about.i2p
|
||||
USER user
|
||||
WORKDIR
|
||||
CMD about.i2p
|
@ -5,4 +5,4 @@ wd=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)
|
||||
. "${wd}/env.sh"
|
||||
docker build -t eyedeekay/about.i2p .
|
||||
docker rm -f about.i2p
|
||||
docker run -d --net=host --restart=always --name=about.i2p --volume="${HOME}/abouti2p":/home/user/about.i2p eyedeekay/about.i2p about.i2p --authkey="${AUTH_KEY}"
|
||||
docker run -d --net=host --restart=always --user=user --name=about.i2p --volume="${HOME}/abouti2p":/home/user/about.i2p eyedeekay/about.i2p about.i2p --authkey="${AUTH_KEY}"
|
Reference in New Issue
Block a user