2024-03-15 20:02:31 +01:00
|
|
|
FROM mcr.microsoft.com/mssql/server:2022-CU12-ubuntu-22.04
|
2017-08-18 04:28:56 +02:00
|
|
|
|
2018-06-09 14:17:16 +02:00
|
|
|
LABEL com.bitwarden.product="bitwarden"
|
|
|
|
|
2022-09-20 16:47:23 +02:00
|
|
|
USER root:root
|
|
|
|
|
2017-08-21 16:58:00 +02:00
|
|
|
RUN apt-get update \
|
|
|
|
&& apt-get install -y --no-install-recommends \
|
2024-02-02 14:57:19 +01:00
|
|
|
gosu \
|
|
|
|
tzdata \
|
2017-08-21 16:58:00 +02:00
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
|
|
COPY backup-db.sql /
|
|
|
|
COPY backup-db.sh /
|
2018-03-24 03:16:57 +01:00
|
|
|
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
|
2018-04-16 21:30:07 +02:00
|
|
|
|
2018-05-21 19:37:46 +02:00
|
|
|
RUN /opt/mssql/bin/mssql-conf set telemetry.customerfeedback false
|
|
|
|
|
2020-12-21 16:30:36 +01:00
|
|
|
HEALTHCHECK --start-period=120s --timeout=3s CMD /opt/mssql-tools/bin/sqlcmd \
|
2019-07-26 18:52:39 +02:00
|
|
|
-S localhost -U sa -P ${SA_PASSWORD} -Q "SELECT 1" || exit 1
|
2019-07-26 18:16:38 +02:00
|
|
|
|
2017-08-18 04:28:56 +02:00
|
|
|
ENTRYPOINT ["/entrypoint.sh"]
|