-
Notifications
You must be signed in to change notification settings - Fork 5
/
Dockerfile
34 lines (24 loc) · 846 Bytes
/
Dockerfile
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
FROM mariadb:latest
MAINTAINER Yanis LISIMA <zeenlym@gmail.com>
# Setting bash as default shell
RUN rm /bin/sh && ln -s /bin/bash /bin/sh
# Install dependencies
RUN apt-get -y update \
&& LC_ALL=C DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
curl \
p7zip \
python3 \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# Getting go-cron
ENV GO_CRON_VERSION v0.0.7
RUN curl -L https://github.com/odise/go-cron/releases/download/${GO_CRON_VERSION}/go-cron-linux.gz \
| zcat > /usr/local/bin/go-cron \
&& chmod u+x /usr/local/bin/go-cron
COPY mdbtool /usr/local/mdbtool
COPY bin/* /usr/local/bin/
RUN ln -s /usr/local/mdbtool/mdbtool /usr/local/bin
EXPOSE 18080
VOLUME /backup
ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"]
CMD ["go-cron"]