From dc8e496532ff036cede2b0eac6d120db92137cf1 Mon Sep 17 00:00:00 2001 From: Phung Huu Thanh <102614541+phuuthanh2003@users.noreply.github.com> Date: Mon, 26 Aug 2024 00:11:08 +0700 Subject: [PATCH] 1 --- db/Dockerfile | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/db/Dockerfile b/db/Dockerfile index 0e62cf3..f036ab0 100644 --- a/db/Dockerfile +++ b/db/Dockerfile @@ -1,16 +1,12 @@ # Dùng official SQL Server 2019 image của Microsoft FROM mcr.microsoft.com/mssql/server:2019-latest -# Biến môi trường -ENV ACCEPT_EULA=Y -ENV SA_PASSWORD= - # Copy the SQL script vào container COPY init.sql /usr/src/app/init.sql # Chạy lệnh trong file sql RUN /opt/mssql/bin/sqlservr & sleep 30 \ - && /opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P ${{ secrets.SQL_SA_PASSWORD }} -i /usr/src/app/init.sql \ + && /opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P Thanhth@nh1 -i /usr/src/app/init.sql \ && pkill sqlservr EXPOSE 1433