Skip to content

Commit

Permalink
modified: IMOMaritimeSingleWindow/Server/Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
vrsorheim committed Jul 5, 2024
1 parent 541dc6e commit 4de5f68
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion IMOMaritimeSingleWindow/Server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@ ENV PGDATABASE=db-imo-msw-dev-1
ENV PGUSER=psqladmin
ENV PGPASSWORD=szechuan

RUN psql -h $PGHOST -U $PGUSER -d $PGDATABASE -f /workspaces/backend/SqlScripts/Create_and_populate_DB.sql

# Set the entrypoint command
CMD ["sh", "-c", "\
psql -h $PGHOST -U $PGUSER -d $PGDATABASE -f /workspaces/backend/SqlScripts/Create_and_populate_DB.sql && \
dotnet ef database update --context open_ssnContext -v && \
dotnet run --urls http://backend.devcontainer:5000" ]

0 comments on commit 4de5f68

Please sign in to comment.