2023-02-20 19:12:26 +00:00
|
|
|
FROM node:18-bullseye-slim
|
|
|
|
WORKDIR /app
|
2023-04-09 05:38:37 +00:00
|
|
|
|
|
|
|
COPY package*.json ./
|
|
|
|
|
2024-05-22 10:21:38 +00:00
|
|
|
RUN apt-get update && \
|
|
|
|
apt-get install -y git python3 build-essential && \
|
|
|
|
npm ci && \
|
|
|
|
npm cache clean --force && \
|
2024-05-13 18:55:42 +00:00
|
|
|
apt purge --autoremove -y python3 build-essential && \
|
|
|
|
rm -rf ~/.cache/ /var/lib/apt/lists/*
|
2023-04-09 05:38:37 +00:00
|
|
|
|
2023-02-20 19:12:26 +00:00
|
|
|
COPY . .
|
|
|
|
EXPOSE 9000
|
|
|
|
CMD [ "node", "src/cobalt" ]
|