aswi2021bc304crew-gitlab/docker/Dockerfile @ fad0afca
1 | fad0afca | Dominik Chlouba | FROM mcr.microsoft.com/mssql/server:2019-latest |
---|---|---|---|
2 | |||
3 | # Switch to root user
|
||
4 | USER root |
||
5 | |||
6 | # Create setup directory
|
||
7 | RUN mkdir -p /usr/src/db-setup |
||
8 | WORKDIR /usr/src/db-setup |
||
9 | |||
10 | # Copy db setup scripts
|
||
11 | COPY . /usr/src/db-setup |
||
12 | |||
13 | # Grant permissions for the import-data script to be executable
|
||
14 | RUN chmod +x /usr/src/db-setup/init-db.sh |
||
15 | |||
16 | #run the entrypoint script
|
||
17 | ENTRYPOINT /bin/bash ./entrypoint.sh |