Skip to content

Commit

Permalink
Merge pull request #193 from FromDoppler/DD-1165-remove-sql-patch
Browse files Browse the repository at this point in the history
Remove SQL patch
  • Loading branch information
RodrigoPereyraDiaz authored May 5, 2023
2 parents a20c27d + 1c908fe commit 7ec92ff
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,6 @@ FROM build AS publish
RUN dotnet publish "./Doppler.HelloMicroservice/Doppler.HelloMicroservice.csproj" -c Release -o /app/publish

FROM mcr.microsoft.com/dotnet/aspnet:7.0.5-bullseye-slim AS final
# We need these changes in openssl.cnf to access to our SQL Server instances in QA and INT environments
# See more information in https://stackoverflow.com/questions/56473656/cant-connect-to-sql-server-named-instance-from-asp-net-core-running-in-docker/59391426#59391426
RUN sed -i 's/DEFAULT@SECLEVEL=2/DEFAULT@SECLEVEL=1/g' /etc/ssl/openssl.cnf \
&& sed -i 's/MinProtocol = TLSv1.2/MinProtocol = TLSv1/g' /etc/ssl/openssl.cnf \
&& sed -i 's/DEFAULT@SECLEVEL=2/DEFAULT@SECLEVEL=1/g' /usr/lib/ssl/openssl.cnf \
&& sed -i 's/MinProtocol = TLSv1.2/MinProtocol = TLSv1/g' /usr/lib/ssl/openssl.cnf
WORKDIR /app
EXPOSE 80
COPY --from=publish /app/publish .
Expand Down

0 comments on commit 7ec92ff

Please sign in to comment.