diff --git a/docker-compose.yml b/docker-compose.yml index 288e445..d36523d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,10 +2,6 @@ services: wardrobe-manager-api: image: tmclncy/wardrobemanager-api:latest container_name: wardrobe-manager-api - - build: - context: . - dockerfile: ./docker/WardrobeManager.Api/Dockerfile environment: - FrontendUrl=http://localhost:9001 ports: @@ -16,10 +12,8 @@ services: wardrobe-manager: wardrobe-manager-presentation: + image: tmclncy/wardrobemanager-presentation:latest container_name: wardrobe-manager-presentation - build: - context: . - dockerfile: ./docker/WardrobeManager.Presentation/Dockerfile environment: - BackendUrl=http://localhost:9005 ports: diff --git a/docker/WardrobeManager.Presentation/Dockerfile b/docker/WardrobeManager.Presentation/Dockerfile index 217cf98..87ad549 100644 --- a/docker/WardrobeManager.Presentation/Dockerfile +++ b/docker/WardrobeManager.Presentation/Dockerfile @@ -20,7 +20,7 @@ COPY --from=publish /app/publish/wwwroot . # Setup docker entrypoint script (used to dynamically update appsettings.Production.json based on env variable) RUN apk add jq COPY ["./docker/WardrobeManager.Presentation/update-appsettings.sh", "/docker-entrypoint.d/40-script.sh"] - +RUN chmod +x "/docker-entrypoint.d/40-script.sh" COPY ["./docker/WardrobeManager.Presentation/nginx.conf", "/etc/nginx/nginx.conf"]