1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-22 12:15:36 +01:00
bitwarden-server/util/MsSql/Dockerfile
Matt Bishop 472b1f8d44
[PM-5313] Upgrade to SQL Server 2022 (#3580)
* Upgrade to SQL Server 2022

* CU11
2024-02-02 09:35:00 -05:00

26 lines
617 B
Docker

FROM mcr.microsoft.com/mssql/server:2022-CU11-ubuntu-22.04
LABEL com.bitwarden.product="bitwarden"
USER root:root
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
gosu \
tzdata \
&& rm -rf /var/lib/apt/lists/*
COPY backup-db.sql /
COPY backup-db.sh /
COPY entrypoint.sh /
RUN chmod +x /entrypoint.sh \
&& chmod +x /backup-db.sh
RUN /opt/mssql/bin/mssql-conf set telemetry.customerfeedback false
HEALTHCHECK --start-period=120s --timeout=3s CMD /opt/mssql-tools/bin/sqlcmd \
-S localhost -U sa -P ${SA_PASSWORD} -Q "SELECT 1" || exit 1
ENTRYPOINT ["/entrypoint.sh"]