Files
seedbox-lite-torrent/client/Dockerfile.dev
Salman Qureshi bdd89497fe Add CORS testing script for API endpoints
- Created a new script `test-cors.sh` to test CORS configuration.
- Included tests for OPTIONS preflight request, actual POST request, and health endpoint.
- Utilized curl for making requests to the API with appropriate headers.
2025-08-10 13:51:46 +05:30

23 lines
375 B
Docker

# Development Dockerfile for hot reload
FROM node:18-alpine
# Install curl for healthcheck
RUN apk add --no-cache curl
WORKDIR /app
# Copy package files
COPY package*.json ./
# Install all dependencies (including dev)
RUN npm install
# Copy source code
COPY . .
# Expose port
EXPOSE 5174
# Start development server
CMD ["npm", "run", "dev", "--", "--host", "0.0.0.0"]