Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use root group and allow full access for the group to the working directory #45

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,12 @@ MAINTAINER Steffen Bleul <[email protected]>
ARG LOGROTATE_VERSION=latest
# permissions
ARG CONTAINER_UID=1000
ARG CONTAINER_GID=1000
ARG CONTAINER_GID=0

# install dev tools
RUN export CONTAINER_USER=logrotate && \
export CONTAINER_GROUP=logrotate && \
addgroup -g $CONTAINER_GID logrotate && \
adduser -u $CONTAINER_UID -G logrotate -h /usr/bin/logrotate.d -s /bin/bash -S logrotate && \
adduser -u $CONTAINER_UID -G root -h /usr/bin/logrotate.d -s /bin/bash -S logrotate && \
apk add --update \
tar \
gzip \
Expand All @@ -22,6 +21,7 @@ RUN export CONTAINER_USER=logrotate && \
else apk add "logrotate=${LOGROTATE_VERSION}" ; \
fi && \
mkdir -p /usr/bin/logrotate.d && \
chmod -R g=u /usr/bin/logrotate.d && \
wget --no-check-certificate -O /tmp/go-cron.tar.gz https://github.com/michaloo/go-cron/releases/download/v0.0.2/go-cron.tar.gz && \
tar xvf /tmp/go-cron.tar.gz -C /usr/bin && \
apk del \
Expand Down