-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
75 lines (65 loc) · 1.82 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
FROM alpine:3.20
#RUN echo "https://dl-cdn.alpinelinux.org/alpine/v3.10/main" >> /etc/apk/repositories
RUN apk update && \
apk upgrade && \
apk add alpine-sdk alpine-conf apk-tools sudo git bash atools vim linux-headers libcap-dev alpine-make-rootfs && \
apk add \
zlib-dev \
libpng-dev \
libjpeg-turbo-dev \
freetype-dev \
fontconfig-dev \
perl-dev \
ghostscript-dev \
libtool \
tiff-dev \
tiff \
lcms2-dev \
libwebp-dev \
libxml2-dev \
libx11-dev \
libxext-dev \
libwmf-dev \
chrpath \
libheif-dev \
openjpeg \
librsvg-dev \
freetype \
fontconfig \
ghostscript \
ghostscript-fonts \
lcms2 \
graphviz \
libzip \
zstd-dev \
djvulibre \
jbig2dec \
xz-dev \
openexr \
pango \
libraw \
zip \
p7zip \
potrace \
openjpeg-dev \
pkgconfig \
openjpeg-tools \
jasper-dev \
terminus-font \
ttf-liberation
RUN mkdir -p /var/cache/distfiles && \
chgrp abuild /var/cache/distfiles && \
chmod a+w /var/cache/distfiles
ADD ./volumes /volumedata
ADD ./abuild /home/dev/.abuild
RUN cp /home/dev/.abuild/-603ce745.rsa.pub /etc/apk/keys/ && \
chmod a+r /etc/apk/keys/-603ce745.rsa.pub && \
apk update
RUN adduser dev --disabled-password && addgroup dev abuild && addgroup root abuild
RUN echo "dev ALL=(ALL:ALL)NOPASSWD:ALL" > /etc/sudoers.d/dev
RUN chown -R dev:abuild /volumedata /home/dev/.abuild
USER dev:abuild
RUN cd /volumedata && \
abuild && \
tar -czvf /home/dev/imagemagick.tar.gz -C /home/dev/packages .
ENTRYPOINT [ "watch", "-n", "1", "ls", "-l", "/home/dev/packages/x86_64/" ]