cobalt-7/Dockerfile
dumbmoron 3fe6004600
dockerfile: fix freebind building, set up everything in one step
this also shrinks the image by around 40MB, since the apt/lists layer no longer sticks around
2024-05-14 18:38:20 +00:00

14 lines
317 B
Docker

FROM node:18-bullseye-slim
WORKDIR /app
COPY package*.json ./
RUN apt-get update && \
apt-get install -y git python3 build-essential && \
npm install && \
apt purge --autoremove -y python3 build-essential && \
rm -rf ~/.cache/ /var/lib/apt/lists/*
COPY . .
EXPOSE 9000
CMD [ "node", "src/cobalt" ]