Skip to content

Commit a1c1d65

Browse files
author
Joe Atzberger
committed
Update to python3 basis
1 parent 5d934ee commit a1c1d65

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

Dockerfile

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
FROM hashicorp/terraform:0.12.29
2-
# FROM hashicorp/terraform:light # when we can support v.12+
32
LABEL maintainer="Corelight AWS Team <aws@corelight.com>"
43
LABEL description="Serverless with Terraform for CI/CD"
54

6-
RUN apk add --update git bash openssh make nodejs nodejs-npm
5+
RUN apk add --no-cache --update git bash openssh make nodejs nodejs-npm
76
RUN npm install -g serverless \
87
serverless-domain-manager \
98
serverless-plugin-git-variables \
@@ -12,9 +11,9 @@ RUN npm install -g serverless \
1211
# Note: ignore "serverless update check failed" warning during "npm install"
1312

1413
# Heavyweight considering we only use awscli for configuration, presently.
15-
RUN apk add --update python py-pip && \
16-
pip install --upgrade awscli python-gitlab && \
17-
apk --purge del py-pip && \
18-
rm /var/cache/apk/*
14+
RUN apk add --no-cache --update python3 py-pip groff && \
15+
pip install --upgrade awscli python-gitlab
16+
17+
RUN ln -s /usr/bin/python3 /usr/bin/python
1918

2019
ENTRYPOINT ["/bin/bash", "-l", "-c"]

0 commit comments

Comments
 (0)