-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
37 lines (27 loc) · 859 Bytes
/
Dockerfile
File metadata and controls
37 lines (27 loc) · 859 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
ARG TAG=bookworm
ARG DEBIAN_FRONTEND=noninteractive
FROM debian:${TAG} as base
RUN echo 'debconf debconf/frontend select teletype' | debconf-set-selections
RUN apt-get update
RUN apt-get dist-upgrade -y
RUN DEBIAN_FRONTEND=noninteractive apt -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confnew" -y install cron sudo
RUN apt-get clean
RUN rm -rf \
/var/lib/apt/lists/* \
/var/log/alternatives.log \
/var/log/apt/history.log \
/var/log/apt/term.log \
/var/log/dpkg.log
RUN rm -f \
/etc/machine-id \
/var/lib/dbus/machine-id
RUN mkdir -p /opt
#RUN chown 1000:1000 -R /opt
FROM base AS add
ADD --chmod=777 files* /opt/
RUN chmod -R 777 /opt
ENV CronSchedule="*/1 * * * *"
ENV PUID="1000"
ENV PGID="1000"
WORKDIR /opt
CMD ["/opt/cron_start.sh"]