Spaces:
Paused
Paused
File size: 462 Bytes
b121e67 b9173bc 5846f1b b9173bc b121e67 b9173bc 5846f1b b9173bc b42b65b b9173bc 5846f1b b9173bc 5846f1b b42b65b |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
FROM node:lts-buster
# Install Git and other dependencies
RUN apt-get update && \
apt-get install -y \
git \
ffmpeg \
imagemagick \
webp && \
apt-get upgrade -y && \
rm -rf /var/lib/apt/lists/*
# Copy package.json and install dependencies
COPY package.json .
RUN npm install && npm install -g qrcode-terminal pm2
# Copy application code
COPY . .
# Expose port and set command
EXPOSE 3000
CMD ["pm2-runtime", "start", "index.js"]
|