cobalt-7/Dockerfile

18 lines
413 B
Text
Raw Normal View History

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