Files
server/util/MsSql/Dockerfile

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

25 lines
688 B
Docker
Raw Normal View History

2020-01-22 17:14:12 -05:00
FROM mcr.microsoft.com/mssql/server:2017-CU18-ubuntu-16.04
LABEL com.bitwarden.product="bitwarden"
2017-08-21 10:58:00 -04:00
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
2018-03-26 21:38:32 -04:00
gosu \
2019-11-22 15:52:17 +01:00
tzdata \
2017-08-21 10:58:00 -04:00
&& rm -rf /var/lib/apt/lists/*
COPY backup-db.sql /
COPY backup-db.sh /
COPY entrypoint.sh /
2018-03-26 11:21:03 -04:00
2018-03-27 14:55:33 -04:00
RUN chmod +x /entrypoint.sh \
&& chmod +x /backup-db.sh
2018-04-16 15:30:07 -04:00
# Does not work unfortunately (https://github.com/bitwarden/server/issues/286)
RUN /opt/mssql/bin/mssql-conf set telemetry.customerfeedback false
HEALTHCHECK --start-period=120s --timeout=3s CMD /opt/mssql-tools/bin/sqlcmd \
2019-07-26 12:52:39 -04:00
-S localhost -U sa -P ${SA_PASSWORD} -Q "SELECT 1" || exit 1
2019-07-26 12:16:38 -04:00
ENTRYPOINT ["/entrypoint.sh"]