2024-02-05 19:03:42 +01:00
|
|
|
FROM mcr.microsoft.com/dotnet/aspnet:8.0
|
2018-03-24 02:11:17 +01:00
|
|
|
|
2018-06-09 14:17:16 +02:00
|
|
|
LABEL com.bitwarden.product="bitwarden"
|
|
|
|
|
2018-03-27 20:55:33 +02:00
|
|
|
RUN apt-get update \
|
|
|
|
&& apt-get install -y --no-install-recommends \
|
2024-02-05 19:03:42 +01:00
|
|
|
gosu \
|
|
|
|
curl \
|
2018-04-02 20:11:36 +02:00
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
2018-03-27 20:55:33 +02:00
|
|
|
|
2018-03-24 04:03:09 +01:00
|
|
|
ENV ASPNETCORE_URLS http://+:5000
|
2018-03-24 02:11:17 +01:00
|
|
|
WORKDIR /app
|
2018-03-24 03:46:09 +01:00
|
|
|
EXPOSE 5000
|
2021-05-27 18:16:12 +02:00
|
|
|
COPY obj/build-output/publish .
|
2018-03-24 03:16:57 +01:00
|
|
|
COPY entrypoint.sh /
|
2018-04-16 21:30:07 +02:00
|
|
|
RUN chmod +x /entrypoint.sh
|
2018-03-24 03:28:58 +01:00
|
|
|
|
2019-07-26 17:59:42 +02:00
|
|
|
HEALTHCHECK CMD curl -f http://localhost:5000 || exit 1
|
|
|
|
|
2018-03-24 02:11:17 +01:00
|
|
|
ENTRYPOINT ["/entrypoint.sh"]
|