Skip to content

Commit eee5106

Browse files
UbuntuUbuntu
authored andcommitted
Merge branch 'release/1.2.1'
2 parents 19c45bc + 3c6e24a commit eee5106

File tree

1 file changed

+1
-23
lines changed

1 file changed

+1
-23
lines changed

Dockerfile.dbupdate

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -23,31 +23,9 @@ RUN dotnet publish ./DbUpdate/DbUpdate.csproj -c Release -o /app/publish
2323
FROM mcr.microsoft.com/dotnet/runtime:7.0 AS runtime
2424
WORKDIR /app
2525

26-
# Install minimal debugging tools
27-
RUN apt-get update && apt-get install -y --no-install-recommends \
28-
iproute2 iputils-ping net-tools dnsutils && \
29-
rm -rf /var/lib/apt/lists/*
30-
31-
# Install SQL Server Command Line Tools
32-
RUN apt-get update && apt-get install -y curl gnupg
33-
RUN curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add -
34-
RUN curl https://packages.microsoft.com/config/ubuntu/20.04/prod.list > /etc/apt/sources.list.d/mssql-release.list
35-
RUN apt-get update && ACCEPT_EULA=Y apt-get install -y mssql-tools
36-
37-
# Update PATH to include mssql-tools
38-
ENV PATH="${PATH}:/opt/mssql-tools/bin"
39-
4026
COPY --from=publish /app/publish .
4127

4228
# Copy the ScriptsMigration folder from the build stage to the runtime image
4329
COPY --from=build /tmp/ScriptsMigration /app/ScriptsMigration/
4430

45-
# Set environment variable for runtime
46-
ENV ConnectionStrings__DefaultConnection="${ConnectionStrings__DefaultConnection}"
47-
48-
COPY entrypoint.sh /app/entrypoint.sh
49-
RUN chmod +x /app/entrypoint.sh
50-
51-
ENTRYPOINT ["/app/entrypoint.sh"]
52-
53-
#CMD ["dotnet", "DbUpdate.dll"]
31+
CMD ["dotnet", "DbUpdate.dll"]

0 commit comments

Comments
 (0)