From 386c8a8ddd74bfa15c22023285d170a0af46d067 Mon Sep 17 00:00:00 2001 From: "cool.gitter.choco" Date: Tue, 28 Jan 2025 08:55:59 -0600 Subject: [PATCH] hotfix --- Dockerfile | 5 +++-- entrypoint.sh | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 29243f9..0ca0cf5 100755 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,7 @@ FROM python:3.12-slim # Install system dependencies and gosu for user switching -RUN apt-get update && apt-get install -y git ffmpeg gosu && \ +RUN apt-get update && apt-get install -y git ffmpeg gosu bash && \ rm -rf /var/lib/apt/lists/* # Set the working directory in the container @@ -19,7 +19,8 @@ COPY . . # Copy entrypoint script and make it executable COPY entrypoint.sh /entrypoint.sh -RUN chmod +x /entrypoint.sh +RUN chmod +x /entrypoint.sh && \ + dos2unix /entrypoint.sh # Expose the application port EXPOSE 7171 diff --git a/entrypoint.sh b/entrypoint.sh index 15df7ac..a064deb 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,4 +1,4 @@ - #!/bin/bash +#!/usr/bin/env bash set -e # Check if both PUID and PGID are not set