Skip to content

Commit 1de0239

Browse files
authored
Remove gnupg and curl
1 parent dab29c0 commit 1de0239

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

alpine/Dockerfile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ ARG MICROSOFT_DOWNLOAD_URL=https://download.microsoft.com/download/7/6/d/76de322
1818

1919
ENV PATH=$MSSQLTOOLS_PATH/bin:$PATH
2020

21-
RUN apk add --update curl gnupg \
22-
# Helper command to convert \r\n to \n,
23-
# since sqlcmd prints Windows line endings
24-
dos2unix; \
21+
RUN apk add --update --no-cache --virtual .install-deps curl gnupg \
22+
# Helper command to convert \r\n to \n,
23+
# since sqlcmd prints Windows line endings
24+
&& apk add --update --no-cache dos2unix; \
2525
\
2626
export MSODBCSQL_PACKAGE=msodbcsql${MSODBCSQL_SUFFIX}_${MSODBCSQL_VERSION}_${TARGETARCH}; \
2727
export MSSQL_TOOLS_PACKAGE=mssql-tools${MSSQLTOOLS_SUFFIX}_${MSSQLTOOLS_VERSION}_${TARGETARCH}; \
@@ -38,6 +38,7 @@ RUN apk add --update curl gnupg \
3838
\
3939
&& apk add --allow-untrusted ${MSODBCSQL_PACKAGE}.apk \
4040
&& apk add --allow-untrusted ${MSSQL_TOOLS_PACKAGE}.apk \
41+
&& apk del .install-deps \
4142
&& rm -f ${MSODBCSQL_PACKAGE}.apk ${MSSQL_TOOLS_PACKAGE}.apk \
4243
&& rm -rf /var/cache/apk/*
4344

0 commit comments

Comments
 (0)