Skip to content

Commit

Permalink
Rewrite to use python:3.12 and update to latest ansible
Browse files Browse the repository at this point in the history
  • Loading branch information
GabLeRoux committed May 30, 2024
1 parent 08ae48f commit 255bafc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 15 deletions.
24 changes: 10 additions & 14 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,21 +1,17 @@
FROM docker.io/library/python:3.7-alpine
FROM docker.io/library/python:3.12

COPY requirements.txt ./

RUN apk add --update --no-cache \
RUN apt-get update && apt-get install -y --no-install-recommends \
openssh-client \
rsync \
musl-dev \
build-essential \
libffi-dev \
openssl-dev \
cargo
RUN apk add --update --no-cache \
--virtual .build-deps \
make \
gcc \
python3-dev \
&& pip install --no-cache-dir --upgrade pip \
&& pip install --no-cache-dir -r requirements.txt \
&& apk del .build-deps
libssl-dev \
cargo \
&& rm -rf /var/lib/apt/lists/*

CMD ['ansible']
RUN pip install --no-cache-dir --upgrade pip \
&& pip install --no-cache-dir -r requirements.txt

CMD ["ansible"]
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ansible==5.1.0
ansible==9.6.0

0 comments on commit 255bafc

Please sign in to comment.