Spaces:
Sleeping
Sleeping
File size: 559 Bytes
fe02ff1 cc771fe fe02ff1 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
FROM node:20-alpine
WORKDIR /app
# Copy package files
COPY package*.json ./
# Install dependencies
RUN npm ci --only=production
# Copy entrypoint script
COPY docker-entrypoint.sh /usr/local/bin/
RUN chmod +x /usr/local/bin/docker-entrypoint.sh
# Copy application code
COPY . .
# Create data directory with proper permissions
RUN mkdir -p /app/data && \
chown -R node:node /app && \
chmod -R 755 /app
# Expose ports
EXPOSE 3000 6969
# Set entrypoint
ENTRYPOINT ["docker-entrypoint.sh"]
# Command to run the application
CMD ["node", "start.js"] |