initial
This commit is contained in:
23
Dockerfile
Normal file
23
Dockerfile
Normal file
@ -0,0 +1,23 @@
|
||||
FROM debian:bullseye
|
||||
|
||||
ARG APP_DIR="/opt/app"
|
||||
|
||||
RUN \
|
||||
apt update && \
|
||||
apt install -y cron && \
|
||||
mkdir -p ${APP_DIR} && \
|
||||
useradd -d ${APP_DIR} -u 1000 user
|
||||
|
||||
COPY crontab /etc/
|
||||
COPY testscript.sh ${APP_DIR}/
|
||||
|
||||
# USER 1000:1000
|
||||
WORKDIR ${APP_DIR}
|
||||
|
||||
CMD [ "/usr/sbin/cron", "-f" ]
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
5
testscript.sh
Executable file
5
testscript.sh
Executable file
@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
date > /tmp/date.log
|
||||
|
||||
|
Reference in New Issue
Block a user