fix: run apk update during build
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
e8031876e7
commit
ef4b5a21e9
3 changed files with 8 additions and 8 deletions
|
@ -4,13 +4,9 @@ FROM ${BASE_IMAGE}:${ALPINE_VERSION}
|
|||
MAINTAINER "f <f@sutty.nl>"
|
||||
|
||||
COPY ./build.sh /usr/local/bin/build
|
||||
RUN chmod 755 /usr/local/bin/build
|
||||
COPY ./entrypoint.sh /usr/local/bin/entrypoint
|
||||
RUN echo "${ALPINE_VERSION}" | cut -d . -f 1,2 | xargs -I {} echo 'https://alpine.sutty.nl/alpine/v{}/sutty' >> /etc/apk/repositories
|
||||
RUN wget https://alpine.sutty.nl/alpine/sutty.pub -O /etc/apk/keys/alpine@sutty.nl-5ea884cd.rsa.pub
|
||||
# We need to update to the builder has access to installing packages
|
||||
RUN apk update
|
||||
RUN sed -re "s|https://dl-cdn.alpinelinux.org|http://alpine.proxy|g" -i /etc/apk/repositories
|
||||
|
||||
USER builder
|
||||
ENTRYPOINT ["/usr/local/bin/build"]
|
||||
CMD ["abuild", "-r"]
|
||||
ENTRYPOINT ["/usr/local/bin/entrypoint"]
|
||||
|
|
3
build.sh
3
build.sh
|
@ -6,5 +6,4 @@ export PATH=/usr/lib/ccache/bin:$PATH
|
|||
cd /home/builder/package
|
||||
|
||||
abuild checksum
|
||||
|
||||
exec $*
|
||||
abuild -r
|
||||
|
|
5
entrypoint.sh
Executable file
5
entrypoint.sh
Executable file
|
@ -0,0 +1,5 @@
|
|||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
apk update
|
||||
su -c /usr/local/bin/build builder
|
Loading…
Reference in a new issue