Skip to content

Instantly share code, notes, and snippets.

@marvell
Created November 30, 2015 09:32
Show Gist options
  • Save marvell/aacb2d7f89158de5e703 to your computer and use it in GitHub Desktop.
Save marvell/aacb2d7f89158de5e703 to your computer and use it in GitHub Desktop.
Dockerfile tips
# Отключаем любые 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