mirror of
https://github.com/Neur0toxine/docker-golang-alpine.git
synced 2024-11-25 06:26:06 +03:00
fix apks installation
This commit is contained in:
parent
3902d3fc47
commit
b430991874
@ -12,7 +12,7 @@ RUN set -eux; \
|
|||||||
echo "builder ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers && \
|
echo "builder ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers && \
|
||||||
chown -R builder:abuild /tmp/aports && \
|
chown -R builder:abuild /tmp/aports && \
|
||||||
sudo -u builder sh -c 'abuild checksum && abuild-keygen -an && abuild -r' && \
|
sudo -u builder sh -c 'abuild checksum && abuild-keygen -an && abuild -r' && \
|
||||||
find /home/builder -iname './*.apk' -exec apk add --allow-untrusted --no-cache {} \;; \
|
find /home/builder -type f -name '*.apk' -exec apk add --allow-untrusted --no-cache {} \;; \
|
||||||
sudo -u builder sh -c 'abuild clean && abuild cleancache' && \
|
sudo -u builder sh -c 'abuild clean && abuild cleancache' && \
|
||||||
apk del --no-network .build-deps && \
|
apk del --no-network .build-deps && \
|
||||||
deluser builder && \
|
deluser builder && \
|
||||||
|
10
1.19-nofaccessat2/faccessat2-test.c
Normal file
10
1.19-nofaccessat2/faccessat2-test.c
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
#include <unistd.h>
|
||||||
|
#include <fcntl.h>
|
||||||
|
|
||||||
|
int main() {
|
||||||
|
// TODO: Use this code to test resulting images.
|
||||||
|
// Should not call faccessat2 under the hood.
|
||||||
|
faccessat(0, "/", R_OK, AT_EACCESS);
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user