mirror of
https://github.com/willfarrell/docker-crontab.git
synced 2025-04-04 14:05:11 +02:00
#6 Added adduser
to the build script
This commit is contained in:
parent
d5f4764d25
commit
d5cfe3bc76
@ -2,7 +2,8 @@ FROM library/docker:stable
|
|||||||
|
|
||||||
ENV HOME_DIR=/opt/crontab
|
ENV HOME_DIR=/opt/crontab
|
||||||
RUN apk add --no-cache --virtual .run-deps bash jq \
|
RUN apk add --no-cache --virtual .run-deps bash jq \
|
||||||
&& mkdir -p ${HOME_DIR}/jobs ${HOME_DIR}/projects
|
&& mkdir -p ${HOME_DIR}/jobs ${HOME_DIR}/projects \
|
||||||
|
&& adduser -S docker -D
|
||||||
|
|
||||||
COPY docker-entrypoint /
|
COPY docker-entrypoint /
|
||||||
ENTRYPOINT ["/docker-entrypoint"]
|
ENTRYPOINT ["/docker-entrypoint"]
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
# This file is for testing the logging of docker output #8
|
||||||
|
|
||||||
LOG_FILE=./jobs.log
|
LOG_FILE=./jobs.log
|
||||||
touch ${LOG_FILE}
|
touch ${LOG_FILE}
|
||||||
UUID="xxxxxxxxxxxxxxxxx"
|
UUID="xxxxxxxxxxxxxxxxx"
|
Loading…
x
Reference in New Issue
Block a user