Skip to content

Instantly share code, notes, and snippets.

@ehzawad
Last active March 2, 2023 09:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ehzawad/46e9f09a19c7ab6ca76df6184cd2e9e2 to your computer and use it in GitHub Desktop.
Save ehzawad/46e9f09a19c7ab6ca76df6184cd2e9e2 to your computer and use it in GitHub Desktop.
Dockerfile for ubuntu jammy
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
@ehzawad
Copy link
Author

ehzawad commented Mar 2, 2023

FROM ubuntu:latest
RUN apt-get update
RUN apt-get install -y wget
RUN wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
RUN chmod +x Miniconda3-latest-Linux-x86_64.sh
RUN ./Miniconda3-latest-Linux-x86_64.sh -b -p /opt/conda
RUN rm Miniconda3-latest-Linux-x86_64.sh
ENV PATH /opt/conda/bin:$PATH

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment