a7aa3fe26e
- Add package.json with dependencies for express, cors, and dotenv - Create server.js to handle password checking and health check endpoints - Implement CORS with configurable allowed origins - Ensure PASSWORD environment variable is set before starting the server
14 lines
152 B
Docker
14 lines
152 B
Docker
FROM node:22-alpine
|
|
|
|
WORKDIR /app
|
|
|
|
COPY package.json ./
|
|
RUN npm install --omit=dev
|
|
|
|
COPY server.js ./
|
|
|
|
USER node
|
|
EXPOSE 3001
|
|
|
|
CMD ["node", "server.js"]
|