Due to performance issues, shared runners are currently unavailable. They should come back later today.

Verified Commit 8344218e authored by Sheogorath's avatar Sheogorath 🛫

Use more generic way to define UID and GID

parent 84bbe912
......@@ -2,10 +2,13 @@ FROM alpine:3.8
ARG TOR_VERSION="0.3.5.8"
ARG TOR_HOME=/var/lib/tor
ARG TOR_UID=994
ARG TOR_GID=994
RUN mkdir -p ${TOR_HOME}/.tor && \
addgroup -S -g 994 tor && \
adduser -S -G tor -u 994 -H -h ${TOR_HOME} tor
chown -R ${TOR_UID}:${TOR_GID} ${TOR_HOME}/ && \
addgroup -S -g ${TOR_GID} tor && \
adduser -S -G tor -u ${TOR_UID} -H -h ${TOR_HOME} tor
RUN apk add --no-cache --virtual .build-deps git libevent-dev openssl-dev gcc make automake ca-certificates autoconf musl-dev coreutils gnupg && \
apk add --no-cache --virtual .tor-deps libevent openssl &&\
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment