Skip to content

Commit

Permalink
Merge branch '104-fix-security-issues-in-docker-image' into 'main'
Browse files Browse the repository at this point in the history
Resolve "Fix security issues in docker image"

Closes #104

See merge request pub/terrareg!75
  • Loading branch information
MatthewJohn committed May 6, 2022
2 parents b2440b3 + e860564 commit 33a93cd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
image: python:latest
image: python:3.10

# Change pip's cache directory to be inside the project directory since we can
# only cache local items.
Expand Down
4 changes: 1 addition & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
FROM python:3.8
FROM python:3.10

WORKDIR /

RUN apt-get update && apt-get dist-upgrade --assume-yes && apt-get clean all

RUN apt-get update && apt-get install --assume-yes curl unzip git && apt-get clean all

RUN wget https://github.com/terraform-docs/terraform-docs/releases/download/v0.16.0/terraform-docs-v0.16.0-linux-amd64.tar.gz && tar -zxvf terraform-docs-v0.16.0-linux-amd64.tar.gz && chmod +x terraform-docs && mv terraform-docs /usr/local/bin/ && rm terraform-docs-v0.16.0-linux-amd64.tar.gz
Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,11 @@ There are common attributes that can be added to each of variable objects, which

## Changelog

### v1.0.3

* Update base image to python:10
* Remove update of system packages in Dockerfile

### v1.0.2

* Add exception to be thrown when upload fails to analyse terraform
Expand Down

0 comments on commit 33a93cd

Please sign in to comment.