Files

32 lines
734 B
Docker
Raw Permalink Normal View History

2025-09-13 20:53:31 +02:00
FROM debian:stable
2025-09-14 19:28:44 +02:00
# Install Node.js (version 22) + Python3 + pip
2025-09-13 20:53:31 +02:00
RUN apt-get update && \
2025-09-14 19:28:44 +02:00
apt-get install -y curl python3 python3-pip && \
2025-09-13 20:53:31 +02:00
curl -fsSL https://deb.nodesource.com/setup_22.x | bash - && \
apt-get install -y nodejs && \
rm -rf /var/lib/apt/lists/*
2025-09-14 19:34:00 +02:00
# Enable pip
RUN bash -c 'rm -f /usr/lib/python3*/EXTERNALLY-MANAGED'
2025-09-14 19:28:44 +02:00
# Upgrade pip and install Python dependencies
2025-09-14 19:34:00 +02:00
RUN python3 -m pip install boto3 pymysql
2025-09-14 19:28:44 +02:00
# Set working directory for Node.js app
WORKDIR /app
# Copy package.json + package-lock.json first to leverage Docker cache
COPY package*.json ./
# Install Node.js dependencies
RUN npm install
# Copy the rest of the app
COPY . .
EXPOSE 3000
# Start your Node.js app
CMD ["node", "index.js"]