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

27 lines
564 B
Docker
Raw Normal View History

2018-02-22 13:52:21 +01:00
FROM microsoft/mssql-server-linux:2017-CU4
2018-03-24 02:58:45 +01:00
USER root
2017-08-21 16:58:00 +02:00
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
cron \
&& rm -rf /var/lib/apt/lists/*
2018-03-24 02:58:45 +01:00
RUN groupadd -g 999 bitwarden && \
useradd -r -u 999 -g bitwarden bitwarden
2017-08-21 16:58:00 +02:00
COPY crontab /etc/cron.d/bitwarden-cron
RUN chmod 0644 /etc/cron.d/bitwarden-cron \
&& touch /var/log/cron.log
2018-03-24 02:58:45 +01:00
USER bitwarden
2017-08-21 16:58:00 +02:00
COPY backup-db.sql /
COPY backup-db.sh /
COPY entrypoint.sh /
2018-03-24 02:58:45 +01:00
USER root
RUN chmod +x /backup-db.sh
RUN chmod +x /entrypoint.sh
2018-03-24 02:58:45 +01:00
USER bitwarden
ENTRYPOINT ["/entrypoint.sh"]