hemsinabox / dockerfile
mikmc's picture
Update dockerfile
3b7740a verified
Raw History Blame Contribute Delete
709 Bytes
# Use the official Node.js 20 slim image
FROM node:20-slim
# Set the working directory
WORKDIR /app
# Install dependencies and necessary tools
RUN apt-get update && \
apt-get install -y --no-install-recommends \
aria2 \
ca-certificates && \
rm -rf /var/lib/apt/lists/* && \
update-ca-certificates
# Copy application files
COPY package*.json ./
RUN npm install --production
COPY . .
# Add and make the startup script executable
COPY start.sh /app/start.sh
RUN chmod +x /app/start.sh
# Set environment variable (to be overridden by Hugging Face secrets)
ENV TELEGRAMBOT=default-placeholder-token
# Expose the updated port
EXPOSE 3000
# Start the container
CMD ["sh", "/app/start.sh"]