1
0
mirror of https://github.com/bitwarden/server synced 2026-01-08 19:43:34 +00:00

Create Dockerfile for Billing (#2477)

* build script for billing

* Add entrypoint script

* Add dockerfile and docker ignore
This commit is contained in:
Michał Chęciński
2022-12-07 09:51:25 +01:00
committed by GitHub
parent fe59186c96
commit d4bb3c30b5
4 changed files with 80 additions and 0 deletions

21
src/Billing/Dockerfile Normal file
View File

@@ -0,0 +1,21 @@
FROM mcr.microsoft.com/dotnet/aspnet:6.0
LABEL com.bitwarden.product="bitwarden"
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
gosu \
curl \
&& rm -rf /var/lib/apt/lists/*
ENV ASPNETCORE_URLS http://+:5000
WORKDIR /app
EXPOSE 5000
COPY entrypoint.sh /
RUN chmod +x /entrypoint.sh
COPY obj/build-output/publish .
HEALTHCHECK CMD curl -f http://localhost:5000/alive || exit 1
ENTRYPOINT ["/entrypoint.sh"]