Add Transcriber service Dockerfile
This commit is contained in:
34
services/transcriber/Dockerfile
Normal file
34
services/transcriber/Dockerfile
Normal file
@ -0,0 +1,34 @@
|
||||
FROM node:18-alpine
|
||||
|
||||
# Install system dependencies
|
||||
RUN apk add --no-cache \
|
||||
python3 \
|
||||
make \
|
||||
g++
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Copy package files
|
||||
COPY package*.json ./
|
||||
|
||||
# Install dependencies
|
||||
RUN npm ci --only=production
|
||||
|
||||
# Copy source code
|
||||
COPY src/ ./src/
|
||||
|
||||
# Create necessary directories
|
||||
RUN mkdir -p /app/logs
|
||||
|
||||
# Run as non-root user
|
||||
RUN addgroup -g 1001 -S nodejs
|
||||
RUN adduser -S transcriber -u 1001
|
||||
RUN chown -R transcriber:nodejs /app
|
||||
USER transcriber
|
||||
|
||||
# Health check
|
||||
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
|
||||
CMD node src/healthcheck.js || exit 1
|
||||
|
||||
# Start the service
|
||||
CMD ["node", "src/orchestrator.js"]
|
Reference in New Issue
Block a user