diff --git a/Dockerfile b/Dockerfile index b3064281..a877f9d8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,15 +1,15 @@ -FROM node:18-bullseye-slim -WORKDIR /app +FROM node:18-alpine -RUN apt-get update -RUN apt-get install -y git -RUN rm -rf /var/lib/apt/lists/* +RUN apk add --no-cache git ffmpeg + +WORKDIR /app +RUN chown node:node /app +USER node COPY package*.json ./ RUN npm install -RUN git clone -n https://github.com/wukko/cobalt.git --depth 1 && mv cobalt/.git ./ && rm -rf cobalt +COPY --chown=node . . -COPY . . EXPOSE 9000 CMD [ "node", "src/cobalt" ]