Skip to content

Commit

Permalink
Merge pull request #156 from phuuthanh-dev/develop
Browse files Browse the repository at this point in the history
1
  • Loading branch information
phuuthanh-dev authored Aug 25, 2024
2 parents 08957df + dc8e496 commit 1dc7396
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions db/Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 1dc7396

Please sign in to comment.