Files
trunk-server/backend/Dockerfile
2024-07-04 09:12:47 -04:00

26 lines
746 B
Docker

# docker build -t smartnet-player .
# do a `git pull` in smartnet-player to update
FROM node:19-bullseye
# RUN echo deb https://www.deb-multimedia.org bullseye main non-free \
# >>/etc/apt/sources.list && apt-get update -oAcquire::AllowInsecureRepositories=true &&\
# apt-get install -y --force-yes deb-multimedia-keyring && \
RUN apt-get update && \
apt-get install -y ffmpeg cron python build-essential g++
ENV HOME=/home/app
RUN mkdir -p /home/app
COPY package.json /tmp
RUN cd /tmp && npm --unsafe-perm install -g node-gyp && npm --unsafe-perm install
RUN mkdir -p /home/app/upload && cp -a /tmp/node_modules /home/app
WORKDIR $HOME/
COPY . $HOME/
RUN npm install -g nodemon
# Run the command on container startup
CMD node index.js