-
Notifications
You must be signed in to change notification settings - Fork 39
/
Dockerfile
49 lines (41 loc) · 1.43 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
47
48
49
FROM golang:alpine AS build
RUN apk add --no-cache git wget build-base shadow
RUN mkdir /overlay
COPY root/ /overlay/
# From https://github.com/sourcelevel/engine-image-optim/blob/2de5967c666fc3f7f8f24e67c0c445da403a67ef/Dockerfile#L61-L64
ENV JHEAD_VERSION=3.04
RUN wget http://www.sentex.net/~mwandel/jhead/jhead-$JHEAD_VERSION.tar.gz \
&& tar zxf jhead-$JHEAD_VERSION.tar.gz \
&& cd jhead-$JHEAD_VERSION \
&& make \
&& make install
ENV GO111MODULE=on
RUN go install github.com/perkeep/gphotos-cdp@e9d1979707191993f1c879ae93f8dd810697fd6e
FROM crazymax/alpine-s6:3.17-edge
LABEL maintainer="Jake Wharton <[email protected]>"
ENV \
# Fail if cont-init scripts exit with non-zero code.
S6_BEHAVIOUR_IF_STAGE2_FAILS=2 \
CRON="" \
HEALTHCHECK_ID="" \
HEALTHCHECK_HOST="https://hc-ping.com" \
PUID="" \
PGID="" \
TZ="" \
CHROMIUM_USER_FLAGS="--no-sandbox"
# Installs latest Chromium package.
RUN echo @edge http://nl.alpinelinux.org/alpine/edge/community > /etc/apk/repositories \
&& echo @edge http://nl.alpinelinux.org/alpine/edge/main >> /etc/apk/repositories \
&& apk add --no-cache \
libstdc++@edge \
chromium@edge \
harfbuzz@edge \
nss@edge \
freetype@edge \
ttf-freefont@edge \
tzdata@edge \
curl@edge \
&& rm -rf /var/cache/* \
&& mkdir /var/cache/apk
COPY --from=build /go/bin/gphotos-cdp /usr/bin/jhead /usr/bin/
COPY root/ /