Update Dockerfile

This commit is contained in:
dumbmoron 2023-07-01 22:43:59 +02:00
parent db5d62ae58
commit 91ddaf4d08

View File

@ -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" ]