Skip to content

Commit 418d936

Browse files
Bump Molecule version
1 parent c9cd26a commit 418d936

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

Dockerfile

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
FROM python:3.9-alpine3.13 AS builder
1+
FROM python:3.10-alpine3.17 AS builder
22

3-
ENV MOLECULE_VER=3.5.2
3+
ENV MOLECULE_VER=4.0.3
44

55
RUN set -eux \
6-
&& apk add --update --no-cache \
7-
gcc \
8-
libc-dev \
9-
libffi-dev \
10-
make \
11-
musl-dev \
12-
openssl-dev \
13-
&& pip install --no-cache-dir \
14-
cryptography==2.8 \
15-
ansible-lint \
16-
jmespath \
17-
"molecule[ansible,docker,lint]==$MOLECULE_VER" \
18-
yamllint
6+
&& apk add --update --no-cache \
7+
gcc \
8+
libc-dev \
9+
libffi-dev \
10+
make \
11+
musl-dev \
12+
openssl-dev \
13+
&& pip install --no-cache-dir \
14+
cryptography==3.4.8 \
15+
ansible-lint \
16+
jmespath \
17+
"molecule[ansible,docker,lint]==$MOLECULE_VER" \
18+
yamllint
1919

2020
FROM python:3.9-alpine3.13
2121

@@ -27,13 +27,13 @@ LABEL "com.github.actions.name"="action-molecule"
2727
LABEL "com.github.actions.description"="Molecule for Ansible"
2828

2929
RUN set -eux \
30-
&& apk add --update --no-cache \
31-
docker \
32-
git \
33-
openssh-client \
34-
&& rm -rf /root/.cache
30+
&& apk add --update --no-cache \
31+
docker \
32+
git \
33+
openssh-client \
34+
&& rm -rf /root/.cache
3535

36-
COPY --from=builder /usr/local/lib/python3.9/site-packages/ /usr/local/lib/python3.9/site-packages/
36+
COPY --from=builder /usr/local/lib/python3.10/site-packages/ /usr/local/lib/python3.10/site-packages/
3737
COPY --from=builder /usr/local/bin/molecule /usr/local/bin/molecule
3838
COPY --from=builder /usr/local/bin/yamllint /usr/local/bin/yamllint
3939
COPY --from=builder /usr/local/bin/ansible* /usr/local/bin/

0 commit comments

Comments
 (0)