Created
November 30, 2015 09:32
-
-
Save marvell/aacb2d7f89158de5e703 to your computer and use it in GitHub Desktop.
Dockerfile tips
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Отключаем любые promt | |
ENV DEBIAN_FRONTEND noninteractive | |
# Удаляем мусор из имиджа | |
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* | |
# Использование glibc для alpine | |
FROM alpine:3.2 | |
RUN apk --update add curl ca-certificates && \ | |
curl -Ls https://circle-artifacts.com/gh/andyshinn/alpine-pkg-glibc/6/artifacts/0/home/ubuntu/alpine-pkg-glibc/packages/x86_64/glibc-2.21-r2.apk > /tmp/glibc-2.21-r2.apk && \ | |
apk add --allow-untrusted /tmp/glibc-2.21-r2.apk && \ | |
rm -rf /tmp/glibc-2.21-r2.apk /var/cache/apk/* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment