# debian.sh --arch 'amd64' out/ 'bookworm' '@1738540800' |
ENV APP_UID=1654 ASPNETCORE_HTTP_PORTS=8080 DOTNET_RUNNING_IN_CONTAINER=true |
RUN /bin/sh -c apt-get update && apt-get install -y --no-install-recommends ca-certificates libc6 libgcc-s1 libicu72 libssl3 libstdc++6 tzdata && rm -rf /var/lib/apt/lists/* # buildkit |
RUN /bin/sh -c groupadd --gid=$APP_UID app && useradd -l --uid=$APP_UID --gid=$APP_UID --create-home app # buildkit |
ENV DOTNET_VERSION=9.0.2 |
COPY /dotnet /usr/share/dotnet # buildkit |
RUN /bin/sh -c ln -s /usr/share/dotnet/dotnet /usr/bin/dotnet # buildkit |
RUN /bin/sh -c apt-get update && apt-get install -y tzdata # buildkit |
ENV TZ=America/Argentina/Buenos_Aires |
RUN /bin/sh -c ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone # buildkit |
RUN /bin/sh -c mkdir -p /app/media && chmod -R 777 /app/media # buildkit |
WORKDIR /app |
RUN /bin/sh -c apt-get install -y python3 python3-pip # buildkit |
RUN /bin/sh -c python3 -m pip install dvr-scan[opencv-headless] --break-system-packages # buildkit |
RUN /bin/sh -c apt-get update && apt-get install -y ffmpeg # buildkit |
COPY /app . # buildkit |
COPY CasaBotApp/appsettings.Docker.json ./appsettings.json # buildkit |
ENTRYPOINT ["dotnet" "CasaBotApp.dll"] |