cobalt/Dockerfile

16 lines
311 B
Docker
Raw Normal View History

2023-02-20 19:12:26 +00:00
FROM node:18-bullseye-slim
WORKDIR /app
2023-04-09 06:38:37 +01:00
RUN apt-get update
RUN apt-get install -y git
RUN rm -rf /var/lib/apt/lists/*
2023-04-09 06:38:37 +01:00
COPY package*.json ./
2023-02-20 19:12:26 +00:00
RUN npm install
2023-04-09 06:38:37 +01:00
2023-04-09 04:32:15 +01:00
RUN git clone -n https://github.com/wukko/cobalt.git --depth 1 && mv cobalt/.git ./ && rm -rf cobalt
2023-04-09 06:38:37 +01:00
2023-02-20 19:12:26 +00:00
COPY . .
EXPOSE 9000
CMD [ "node", "src/cobalt" ]