1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-25 12:45:18 +01:00
bitwarden-server/util/MsSql/Dockerfile

20 lines
449 B
Docker
Raw Normal View History

2018-03-28 16:13:01 +02:00
FROM microsoft/mssql-server-linux:2017-CU5
2017-08-21 16:58:00 +02:00
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
cron \
2018-03-27 03:38:32 +02:00
gosu \
2017-08-21 16:58:00 +02:00
&& rm -rf /var/lib/apt/lists/*
2018-03-27 20:55:33 +02:00
RUN groupadd -g 999 bitwarden
2018-03-26 17:21:03 +02:00
2017-08-21 16:58:00 +02:00
COPY crontab /etc/cron.d/bitwarden-cron
2018-03-27 20:55:33 +02:00
RUN chmod 0644 /etc/cron.d/bitwarden-cron
2017-08-21 16:58:00 +02:00
COPY backup-db.sql /
COPY backup-db.sh /
COPY entrypoint.sh /
2018-03-26 17:21:03 +02:00
2018-03-27 20:55:33 +02:00
RUN chmod +x /entrypoint.sh \
&& chmod +x /backup-db.sh
ENTRYPOINT ["/entrypoint.sh"]