Skip to content

Commit bb38650

Browse files
Update Dockerfile
1 parent 3e91a9c commit bb38650

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

Dockerfile

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -135,11 +135,6 @@ COPY --from=builder /usr/local/lib/python3.12/site-packages/ /usr/local/lib/pyth
135135
# Copy terrascan policies
136136
COPY --from=builder /root/ /root/
137137

138-
# Copy hook scripts for Docker-based hooks
139-
COPY hooks/ /usr/local/bin/hooks/
140-
COPY lib_getopt /usr/local/bin/
141-
COPY src/pre_commit_terraform/ /usr/local/lib/python3.12/site-packages/pre_commit_terraform/
142-
143138
# Install hooks extra deps
144139
RUN if [ "$(grep -o '^terraform-docs SKIPPED$' /usr/bin/tools_versions_info)" = "" ]; then \
145140
apk add --no-cache perl=~5 \
@@ -153,11 +148,6 @@ RUN if [ "$(grep -o '^terraform-docs SKIPPED$' /usr/bin/tools_versions_info)" =
153148

154149
COPY tools/entrypoint.sh /entrypoint.sh
155150

156-
# Copy hook scripts for docker_image language support
157-
COPY hooks/ /usr/bin/hooks/
158-
COPY lib_getopt /usr/bin/lib_getopt
159-
RUN chmod +x /usr/bin/hooks/*.sh
160-
161151
ENV PRE_COMMIT_COLOR=${PRE_COMMIT_COLOR:-always}
162152

163153
ENV INFRACOST_API_KEY=${INFRACOST_API_KEY:-}

0 commit comments

Comments
 (0)