mirror of
https://github.com/bitwarden/server.git
synced 2024-12-03 14:03:33 +01:00
22 lines
462 B
Docker
22 lines
462 B
Docker
FROM mcr.microsoft.com/dotnet/aspnet:8.0
|
|
|
|
LABEL com.bitwarden.product="bitwarden"
|
|
|
|
RUN apt-get update \
|
|
&& apt-get install -y --no-install-recommends \
|
|
gosu \
|
|
curl \
|
|
krb5-user \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
ENV ASPNETCORE_URLS http://+:5000
|
|
WORKDIR /app
|
|
EXPOSE 5000
|
|
COPY obj/build-output/publish .
|
|
COPY entrypoint.sh /
|
|
RUN chmod +x /entrypoint.sh
|
|
|
|
HEALTHCHECK CMD curl -f http://localhost:5000 || exit 1
|
|
|
|
ENTRYPOINT ["/entrypoint.sh"]
|