mirror of
https://github.com/hotheadhacker/seedbox-lite.git
synced 2025-09-02 00:51:36 +03:00
- 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.
23 lines
375 B
Docker
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"]
|