generated from fahricansecer/boilerplate-be
+11
-3
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user