1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-03 00:52:49 -05:00

run jobs crons on API image

This commit is contained in:
Kyle Spearrin
2017-08-17 16:45:27 -04:00
parent d15917d3c9
commit fd35ac45b2
9 changed files with 81 additions and 31 deletions

View File

@ -19,9 +19,19 @@ done
# Custom
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
cron \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
EXPOSE 80
COPY obj/Docker/publish .
COPY obj/Docker/publish/Api .
COPY obj/Docker/publish/Jobs /jobs
RUN mv /jobs/crontab /etc/cron.d/bitwarden-cron \
&& chmod 0644 /etc/cron.d/bitwarden-cron \
&& touch /var/log/cron.log
COPY entrypoint.sh /
RUN chmod +x /entrypoint.sh