Last active
March 2, 2023 09:32
-
-
Save ehzawad/46e9f09a19c7ab6ca76df6184cd2e9e2 to your computer and use it in GitHub Desktop.
Dockerfile for ubuntu jammy
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
FROM ubuntu:22.04 | |
LABEL maintainer="genuity systems LTD" | |
ARG DEBIAN_FRONTEND=noninteractive | |
# Avoid "delaying package configuration, since apt-utils is not installed" | |
RUN apt update && apt install --yes apt-utils | |
# Environment | |
RUN apt update && \ | |
apt install --yes locales && \ | |
locale-gen "en_US.UTF-8" && dpkg-reconfigure locales | |
# Unminimize system | |
RUN yes | unminimize | |
FROM ubuntu:latest | |
RUN apt-get update && \ | |
apt-get install -y wget && \ | |
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh && \ | |
bash Miniconda3-latest-Linux-x86_64.sh -b -p /opt/conda && \ | |
rm Miniconda3-latest-Linux-x86_64.sh && \ | |
/opt/conda/bin/conda clean -tipsy && \ | |
ln -s /opt/conda/etc/profile.d/conda.sh /etc/profile.d/conda.sh && \ | |
echo ". /opt/conda/etc/profile.d/conda.sh" >> ~/.bashrc && \ | |
echo "conda activate base" >> ~/.bashrc | |
ENV PATH /opt/conda/bin:$PATH | |
# Install curl | |
RUN apt update && \ | |
apt install --yes curl |
Author
ehzawad
commented
Mar 2, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment