Skip to content
This repository has been archived by the owner on Mar 25, 2024. It is now read-only.

Commit

Permalink
added cron
Browse files Browse the repository at this point in the history
  • Loading branch information
jarped committed Jun 3, 2019
1 parent 5fbdcfb commit 566ed90
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@ RUN dotnet publish CORESubscriber.csproj -c Release -o /app
FROM base AS final
WORKDIR /app
COPY --from=publish /app .
COPY ./cron /app/
RUN apk update cron
1 change: 1 addition & 0 deletions cron
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* * * * * cd /app; if [ -f working ]; then echo "Sync in progress"; else echo "Sync starting"; touch working; dotnet CORESubscriber.dll sync /provider/config.xml /tmp; echo "Sync finished"; rm working; fi;

0 comments on commit 566ed90

Please sign in to comment.