mirror of
https://github.com/imputnet/cobalt.git
synced 2025-07-16 10:18:28 +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
|
FROM node:18-alpine
|
||||||
WORKDIR /app
|
|
||||||
|
|
||||||
RUN apt-get update
|
RUN apk add --no-cache git ffmpeg
|
||||||
RUN apt-get install -y git
|
|
||||||
RUN rm -rf /var/lib/apt/lists/*
|
WORKDIR /app
|
||||||
|
RUN chown node:node /app
|
||||||
|
USER node
|
||||||
|
|
||||||
COPY package*.json ./
|
COPY package*.json ./
|
||||||
RUN npm install
|
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
|
EXPOSE 9000
|
||||||
CMD [ "node", "src/cobalt" ]
|
CMD [ "node", "src/cobalt" ]
|
||||||
|
Loading…
Reference in New Issue
Block a user