You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
882 B
31 lines
882 B
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 \ |
|
libc-dev \ |
|
opensc \ |
|
&& rm -rf /var/lib/apt/lists/* |
|
|
|
# Install YubiHSM2 SDK |
|
ADD https://developers.yubico.com/YubiHSM2/Releases/yubihsm2-sdk-2021-08-debian10-amd64.tar.gz ./ |
|
RUN tar -xzf yubihsm2-sdk-*.tar.gz \ |
|
&& rm yubihsm2-sdk-*.tar.gz \ |
|
&& dpkg -i yubihsm2-sdk/libyubihsm-http1_*_amd64.deb \ |
|
&& dpkg -i yubihsm2-sdk/libyubihsm1_*_amd64.deb \ |
|
&& dpkg -i yubihsm2-sdk/yubihsm-pkcs11_*_amd64.deb \ |
|
&& apt-get install -f |
|
|
|
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/health || exit 1 |
|
|
|
ENTRYPOINT ["/entrypoint.sh"]
|
|
|