Fix permissions
Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
@@ -3,13 +3,7 @@ FROM alpine
|
||||
RUN apk add --no-cache git
|
||||
|
||||
RUN mkdir /git
|
||||
COPY sync.sh .
|
||||
COPY sync.sh /sync.sh
|
||||
RUN chmod +x sync.sh
|
||||
|
||||
RUN adduser -D -u 1000 -s /bin/sh app
|
||||
RUN chown -R app:app /git
|
||||
USER app
|
||||
|
||||
WORKDIR /git
|
||||
|
||||
CMD ["/sync.sh"]
|
||||
|
10
sync.sh
10
sync.sh
@@ -1,12 +1,4 @@
|
||||
#!/bin/bash
|
||||
|
||||
GIT_ORIGIN="https://git.karaolidis.com/Nikas36/liebling.git"
|
||||
GIT_UPSTREAM="https://github.com/eddiesigner/liebling.git"
|
||||
GIT_BRANCH="master"
|
||||
GIT_NAME="Nikolaos Karaolidis"
|
||||
GIT_EMAIL="nick@karaolidis.com"
|
||||
GIT_USER="Nikas36"
|
||||
GIT_PASS="U3p4Rdzh94Uo_WFuJriq"
|
||||
#!/bin/sh
|
||||
|
||||
if [ -z "$GIT_ORIGIN" ] || [ -z "$GIT_UPSTREAM" ] || [ -z "$GIT_BRANCH" ] || [ -z "$GIT_NAME" ] || [ -z "$GIT_EMAIL" ] || [ -z "$GIT_USER" ] || [ -z "$GIT_PASS" ]; then
|
||||
echo "Environment variables not set"
|
||||
|
Reference in New Issue
Block a user