Skip to content

Commit 44b24bb

Browse files
committed
elk-nodejs-ec2
1 parent b497d40 commit 44b24bb

2 files changed

Lines changed: 1803 additions & 8 deletions

File tree

nodejs-elk-ec2/server/Dockerfile

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,6 @@ RUN npm ci --only=production
1616
# Copy application code
1717
COPY . .
1818

19-
# Create non-root user
20-
RUN addgroup -g 1001 -S nodejs
21-
RUN adduser -S nodejs -u 1001
22-
23-
# Change ownership of the app directory
24-
RUN chown -R nodejs:nodejs /app
25-
USER nodejs
26-
2719
# Expose port
2820
EXPOSE 3000
2921

0 commit comments

Comments
 (0)