-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
32 lines (23 loc) · 1.07 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
# Build a docker image that's ready to build packages
# some dependencies are only in edge, should build for stable releases later too
FROM alpine:edge
LABEL org.opencontainers.image.source "https://github.com/atlascloud/aports"
# RUN echo http://dl-cdn.alpinelinux.org/alpine/edge/testing >> /etc/apk/repositories
# This is a container for building other software, it doesn't need pinned packages/etc
# Also, the edge docker image gets pretty dated at times when ncopa is prep'ing a new release
# hadolint ignore=DL3017,DL3018,DL3019
RUN apk add bash alpine-conf alpine-sdk ccache cmake coreutils m4 sudo fish
# hadolint ignore=DL3017,DL3018,DL3019
RUN apk upgrade
# Do all the build stuff that abuild requires
# https://wiki.alpinelinux.org/wiki/Creating_an_Alpine_package
RUN addgroup build ; \
adduser -D -G build build ; \
adduser build abuild ; \
echo "%abuild ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers ; \
chgrp abuild /var/cache/distfiles ; \
chmod g+w /var/cache/distfiles
USER build
WORKDIR /home/build
ENV USE_CCACHE=true
ENTRYPOINT ["/home/build/entrypoint.sh"]