2024-02-05 13:03:42 -05:00
|
|
|
FROM mcr.microsoft.com/dotnet/aspnet:8.0
|
2021-04-15 08:28:55 -07:00
|
|
|
|
|
|
|
|
LABEL com.bitwarden.product="bitwarden"
|
|
|
|
|
|
|
|
|
|
RUN apt-get update \
|
|
|
|
|
&& apt-get install -y --no-install-recommends \
|
2024-02-05 13:03:42 -05:00
|
|
|
gosu \
|
|
|
|
|
curl \
|
2021-04-15 08:28:55 -07:00
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
|
|
|
|
ENV ASPNETCORE_URLS http://+:5000
|
|
|
|
|
WORKDIR /app
|
|
|
|
|
EXPOSE 5000
|
2021-05-27 12:16:12 -04:00
|
|
|
COPY obj/build-output/publish .
|
2021-04-15 08:28:55 -07:00
|
|
|
COPY entrypoint.sh /
|
|
|
|
|
RUN chmod +x /entrypoint.sh
|
|
|
|
|
|
|
|
|
|
HEALTHCHECK CMD curl -f http://localhost:5000/alive || exit 1
|
|
|
|
|
|
|
|
|
|
CMD ["./../entrypoint.sh"]
|