Skip to content

Commit

Permalink
refactor: use apt-get in dockerfile
Browse files Browse the repository at this point in the history
slightly more cli friendly

also combine the two apt-gets
  • Loading branch information
ctrlaltf24 authored and thw26 committed Oct 25, 2024
1 parent d169a54 commit 4ac9c44
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,17 @@ FROM ubuntu:focal
ENV DEBIAN_FRONTEND=noninteractive

# App Requirements
RUN apt update -qq && apt install -y -qq git build-essential gdb lcov pkg-config \
RUN apt-get update -qq \
&& apt-get install -y -qq git build-essential gdb lcov pkg-config \
libbz2-dev libffi-dev libgdbm-dev libgdbm-compat-dev liblzma-dev \
libncurses5-dev libreadline6-dev libsqlite3-dev libssl-dev \
lzma lzma-dev python3-tk tk-dev uuid-dev zlib1g-dev && rm -rf /var/lib/apt/lists/*
lzma lzma-dev python3-tk tk-dev uuid-dev zlib1g-dev \
curl \
&& rm -rf /var/lib/apt/lists/*

# pyenv for guaranteed py 3.12
ENV HOME="/root"
WORKDIR ${HOME}
RUN apt update && apt install -y curl && rm -rf /var/lib/apt/lists/*
RUN curl https://pyenv.run | bash
ENV PYENV_ROOT="${HOME}/.pyenv"
ENV PATH="${PYENV_ROOT}/shims:${PYENV_ROOT}/bin:${PATH}"
Expand Down

0 comments on commit 4ac9c44

Please sign in to comment.