main
Backend Deploy 🚀 / build-and-deploy (push) Has been cancelled

This commit is contained in:
Harun CAN
2026-04-25 14:37:46 +02:00
parent ad5a97a4fd
commit 9d8c34b39d
34 changed files with 5853 additions and 164 deletions
+11 -3
View File
@@ -13,8 +13,9 @@ RUN dotnet publish -c Release -o /app/publish --no-restore
FROM mcr.microsoft.com/dotnet/runtime:8.0-alpine AS runtime
WORKDIR /app
# FFmpeg ve Globalization kurulumu (ARM64 native Alpine paketi)
RUN apk add --no-cache ffmpeg font-dejavu icu-libs
# FFmpeg, Node.js (Remotion için) ve Chromium (Puppeteer/Remotion için) kurulumu
RUN apk add --no-cache ffmpeg font-dejavu icu-libs nodejs npm chromium nss freetype harfbuzz ttf-freefont
ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium-browser
ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=false
@@ -23,8 +24,15 @@ RUN mkdir -p /tmp/contgen-render
COPY --from=build /app/publish .
# Remotion projesini kopyala ve bağımlılıkları kur
COPY remotion ./remotion
RUN cd remotion && npm ci
# Non-root user ile çalıştır (güvenlik)
RUN adduser -D -h /app workeruser
RUN adduser -D -h /app workeruser && \
chown -R workeruser:workeruser /app/remotion && \
chown -R workeruser:workeruser /tmp/contgen-render
USER workeruser
ENTRYPOINT ["dotnet", "SaasMediaWorker.dll"]