1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-02 16:42:50 -05:00

Move jobs to api hosted service w/ quartz

This commit is contained in:
Kyle Spearrin
2018-08-09 16:08:09 -04:00
parent 7424f6a6dd
commit 10a19c90d3
21 changed files with 248 additions and 339 deletions

View File

@ -4,7 +4,6 @@ LABEL com.bitwarden.product="bitwarden"
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
cron \
gosu \
&& rm -rf /var/lib/apt/lists/*
@ -12,11 +11,7 @@ ENV ASPNETCORE_URLS http://+:5000
WORKDIR /app
EXPOSE 5000
COPY obj/Docker/publish/Api .
COPY obj/Docker/publish/Jobs /jobs
COPY entrypoint.sh /
RUN chmod +x /entrypoint.sh
RUN mv /jobs/crontab /etc/cron.d/bitwarden-cron \
&& chmod 0644 /etc/cron.d/bitwarden-cron
ENTRYPOINT ["/entrypoint.sh"]