-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
46 lines (38 loc) · 1.94 KB
/
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
34
35
36
37
38
39
40
41
42
43
44
45
46
ARG DOCKER_ALPINE_VERSION
FROM maurosoft1973/alpine:$DOCKER_ALPINE_VERSION
ARG BUILD_DATE
ARG ALPINE_ARCHITECTURE
ARG ALPINE_RELEASE
ARG ALPINE_VERSION
ARG ALPINE_VERSION_DATE
ARG LFTP_VERSION
ARG LFTP_VERSION_DATE
LABEL \
maintainer="Mauro Cardillo <[email protected]>" \
architecture="$ALPINE_ARCHITECTURE" \
lftp-version="$LFTP_VERSION" \
alpine-version="$ALPINE_VERSION" \
build="$BUILD_DATE" \
org.opencontainers.image.title="alpine-lftp" \
org.opencontainers.image.description="LFTP Docker Image with Multilanguage e Timezone support running on Alpine Linux" \
org.opencontainers.image.authors="Mauro Cardillo <[email protected]>" \
org.opencontainers.image.vendor="Mauro Cardillo" \
org.opencontainers.image.version="v$LFTP_VERSION" \
org.opencontainers.image.url="https://hub.docker.com/r/maurosoft1973/alpine-lftp/" \
org.opencontainers.image.source="https://gitlab.com/maurosoft1973-docker/alpine-lftp" \
org.opencontainers.image.created=$BUILD_DATE
RUN \
echo "" > /etc/apk/repositories && \
echo "https://dl-cdn.alpinelinux.org/alpine/$ALPINE_RELEASE/main" >> /etc/apk/repositories && \
echo "https://dl-cdn.alpinelinux.org/alpine/$ALPINE_RELEASE/community" >> /etc/apk/repositories && \
apk update && \
apk add --update --no-cache openssh-client git lftp && \
rm -rf /tmp/* /var/cache/apk/*
# https://gist.githubusercontent.com/HackingGate/9e8169c7645b074b2f40c959ca20d738/raw/3ae3913f308d9cf34962ac3488b5973a2fbe1a95/restore_last_git_modified_time.sh
ADD files/restore_last_git_modified_time.sh /usr/local/sbin/git_restore_last_modified_time
RUN chmod +x /usr/local/sbin/git_restore_last_modified_time
ADD files/restore_last_git_modified_time.sh /restore_last_git_modified_time.sh
RUN chmod +x /restore_last_git_modified_time.sh
ADD files/run-alpine-lftp.sh /scripts/run-alpine-lftp.sh
RUN chmod +x /scripts/run-alpine-lftp.sh
ENTRYPOINT ["/scripts/run-alpine-lftp.sh"]