Skip to content

Commit

Permalink
chmod +x
Browse files Browse the repository at this point in the history
  • Loading branch information
benchiverton committed Jun 25, 2024
1 parent 0f6e32a commit eef9f1d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/Website/Company.Website/dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ RUN apk add jq

COPY --from=build-env /app/out/wwwroot .
COPY /src/Website/Company.Website/nginx.conf /etc/nginx/nginx.conf
COPY /src/Website/Company.Website/overwrite-config.sh /docker-entrypoint.d/
COPY /src/Website/Company.Website/overwrite-config.sh /docker-entrypoint.d/overwrite-config.sh
RUN chmod +x /docker-entrypoint.d/overwrite-config.sh

EXPOSE 80
3 changes: 1 addition & 2 deletions src/Website/Company.Website/overwrite-config.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/bin/sh
echo "running overwrite-config!"
cat /var/www/web/appsettings.json

echo "`jq --arg APIBASEPATH "$API__BASEPATH" '.Api.BasePath=$APIBASEPATH' /var/www/web/appsettings.json`" > /var/www/web/appsettings.json

0 comments on commit eef9f1d

Please sign in to comment.