rc-migration-tests/ef-migration/infrastructure/sql-server/Dockerfile
2025-02-03 14:55:00 -05:00

26 lines
738 B
Docker

# Use the lightweight SQL Server 2022 image
FROM mcr.microsoft.com/mssql/server:2022-latest
# Set environment variables
ENV ACCEPT_EULA=Y
ENV MSSQL_PID=Express
ENV SA_PASSWORD=YourStrong@Passw0rd
# Create a directory for database scripts
WORKDIR /usr/src/app
# Copy the schema files
COPY dbo_schema_database_statements_small.sql ./schemas/
COPY fp_schema_database_statements_small.sql ./schemas/
COPY fw_schema_database_statements_small.sql ./schemas/
COPY int_schema_database_statements_small.sql ./schemas/
COPY ob_schema_database_statements_small.sql ./schemas/
# Create initialization script
COPY init.sql ./
# Create setup script that will run the schema creation
COPY setup.sh ./
RUN chmod +x setup.sh
CMD /bin/bash ./setup.sh