mirror of
https://github.com/imputnet/cobalt.git
synced 2025-07-14 01:08:27 +00:00
Update Dockerfile
This commit is contained in:
parent
db5d62ae58
commit
91ddaf4d08
14
Dockerfile
14
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" ]
|
||||
|
Loading…
Reference in New Issue
Block a user