forked from marchemi/mydelcia
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile_alpine
39 lines (30 loc) · 963 Bytes
/
Dockerfile_alpine
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
38
39
# Dockerfile to create image with cron services
FROM alpine:latest
MAINTAINER [email protected]
RUN which crond && \
rm -rf /etc/periodic
RUN apk update
RUN set -x \
&& apk --no-cache add\
python3 \
py-pip \
nano \
&& pip install virtualenv \
&& : # last line
# Install pip packages
COPY requirements.txt ./
RUN pip install -r requirements.txt
RUN apk add --update tzdata
ENV TZ=Europe/Paris
COPY delcia_distrib /usr/src/delcia_distrib
# Set working directory for code
WORKDIR /usr/src/delcia_distrib
COPY entrypoint-alpine.sh ./entrypoint.sh
COPY delcia_tools_alpine.sh ./delcia_toos.sh
COPY delcia_tools_alpine.sh ./delcia_tools.sh
COPY delcia_conf_alpine.json ./delcia_conf.json
RUN chmod 755 ./delcia_toos.sh
RUN chmod 755 ./delcia_tools.sh
ENTRYPOINT ["./entrypoint.sh"]
#docker run --name delcia -d -p 2707:2707 mydelcia
#see : https://www.airplane.dev/blog/docker-cron-jobs-how-to-run-cron-inside-containers