-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
41 lines (33 loc) · 1.08 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
FROM golang:1.23.3-bullseye AS build
ENV GO111MODULE=on
COPY repo /repo
WORKDIR /repo
RUN go build
FROM chromedp/headless-shell:131.0.6778.86
LABEL org.opencontainers.image.source "https://github.com/davidecavestro/docker-gphotos-cdp"
LABEL org.opencontainers.image.description "Download photos and videos from your account without loosing geo-location attributes"
LABEL org.opencontainers.image.licenses "BSD 3-Clause License"
RUN apt-get update && apt-get install -y \
exiftool \
curl \
rsync \
locales \
tree \
file \
jq \
ffmpeg \
bind9-dnsutils \
&& rm -rf /var/lib/apt/lists/*
# Set the locale
RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && \
locale-gen
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
# copy tool binary
COPY --from=build /repo/gphotos-cdp /usr/local/bin/
# copy default script
COPY save.sh /usr/local/bin/
VOLUME /tmp/gphotos-cdp
VOLUME /download
ENTRYPOINT ["/usr/local/bin/gphotos-cdp", "-v", "-dev", "-headless", "-dldir", "/download", "-run", "/usr/local/bin/save.sh" ]