Fix jwt-token
This commit is contained in:
30
data-retention-service/Dockerfile
Normal file
30
data-retention-service/Dockerfile
Normal file
@@ -0,0 +1,30 @@
|
||||
# Data Retention Service
|
||||
|
||||
FROM node:18-alpine
|
||||
|
||||
# Create app directory
|
||||
WORKDIR /app
|
||||
|
||||
# Copy package files
|
||||
COPY package*.json ./
|
||||
|
||||
# Install only production dependencies
|
||||
RUN npm ci --only=production
|
||||
|
||||
# Copy source code
|
||||
COPY . .
|
||||
|
||||
# Create non-root user
|
||||
RUN addgroup -g 1001 -S nodejs
|
||||
RUN adduser -S retention -u 1001
|
||||
|
||||
# Change ownership
|
||||
RUN chown -R retention:nodejs /app
|
||||
USER retention
|
||||
|
||||
# Health check
|
||||
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
|
||||
CMD node healthcheck.js
|
||||
|
||||
# Start the service
|
||||
CMD ["node", "index.js"]
|
||||
Reference in New Issue
Block a user