Skip to content

Commit 5971e6a

Browse files
committed
exclude .git from package by default
1 parent d627a65 commit 5971e6a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

node/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ RUN yum install -y wget gzip tar zip rsync shadow-utils gcc-c++ &&\
1919

2020
# Set the build of a package as the default command
2121
# Initialise RSYNC_OPTIONS to exclude the node_modules folder
22-
ENV RSYNC_OPTIONS --exclude node_modules
22+
ENV RSYNC_OPTIONS --exclude node_modules --exclude .git
2323
COPY package-lambda.sh /usr/bin/package-lambda
2424
CMD ["package-lambda"]
2525

python/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ RUN yum install -y wget util-linux tar zip rsync make gcc-c++ zlib-devel bzip2-d
2121

2222
# Set the build of a package as the default command
2323
# Initialise RSYNC_OPTIONS to exclude the virtual environement folder
24-
ENV RSYNC_OPTIONS --exclude venv --exclude .venv
24+
ENV RSYNC_OPTIONS --exclude venv --exclude .venv --exclude .git
2525
COPY package-lambda.sh /usr/bin/package-lambda
2626
CMD ["package-lambda"]
2727

0 commit comments

Comments
 (0)