Last active
June 2, 2022 02:20
-
-
Save zobzn/0a9a751a113442071ffad9af0069c3f7 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# используем последнюю версию ubuntu | |
FROM ubuntu:18.04 | |
# переключаем Ubuntu в неинтерактивный режим, чтобы избежать лишних запросов | |
ENV DEBIAN_FRONTEND noninteractive | |
# устанавливаем локаль | |
RUN apt-get update && apt-get install -y locales && rm -rf /var/lib/apt/lists/* \ | |
&& localedef -i ru_RU -c -f UTF-8 -A /usr/share/locale/locale.alias ru_RU.UTF-8 | |
ENV LANG ru_RU.UTF-8 | |
# добавляем необходимые репозитарии и устанавливаем пакеты | |
RUN apt-get update && apt-get install -y mc && rm -rf /var/lib/apt/lists/* | |
CMD ["/bin/bash"] |
This file contains hidden or 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
#!/bin/bash | |
docker build -t zbz/ubuntu . | |
docker run --rm -it zbz/ubuntu bash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment