Files
yt/Dockerfile

31 lines
480 B
Docker

FROM node:20-alpine
# Set default locale to German
ENV LOCALE=de
# yt-dlp und ffmpeg installieren
RUN apk add --no-cache \
python3 \
py3-pip \
ffmpeg \
&& pip3 install --no-cache-dir yt-dlp
WORKDIR /app
# Package-Dateien kopieren und Dependencies installieren
COPY package*.json ./
RUN npm ci
# Rest der Anwendung kopieren
COPY . .
# Build durchführen
RUN npm run build
# Port freigeben
EXPOSE 4321
# Start-Befehl
CMD ["node", "./dist/server/entry.mjs"]