Pretty much the question. Here's what I have currently:
FROM node:15 as server
WORKDIR /app
ENV NODE_ENV=production
COPY server/package.json ./
RUN npm install
COPY server/ ./
RUN apt-get update
RUN apt-get install -y mongo-tools
EXPOSE 5000
CMD ["node", "src/app.js"]
Which does work however mongo-tools is a really outdated version of the tools and is not fit for my pusposes.
Mongo Docs has instructions for how to install the newer mongodb-database-tools on linux/windows/macos but I can't figure out how to get it to work in a DockerFile.
For anyone wondering, I'm trying to get a node-cron to periodically call mongodump on a mongodb atlas database.
Any help is appreciated :)