abubasith86 commited on
Commit
5db29f2
·
verified ·
1 Parent(s): 2cd5ff7

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -4
Dockerfile CHANGED
@@ -1,12 +1,12 @@
1
- FROM node:20-slim # or node:20-bullseye, node:20-bookworm, etc.
2
 
3
- # Set UID for the new user (optional, but good practice)
4
  ARG APP_UID=1024
5
 
6
  # Create a non-root user
7
  RUN useradd --create-home --uid ${APP_UID} appuser
8
 
9
- # Set the working directory (owned by appuser)
10
  WORKDIR /home/appuser/app
11
 
12
  # Install n8n globally
@@ -18,5 +18,5 @@ USER appuser
18
  # Expose port 7860 (required by Hugging Face Spaces)
19
  EXPOSE 7860
20
 
21
- # Start n8n
22
  CMD ["n8n", "start", "--port", "7860"]
 
1
+ FROM node:20-slim
2
 
3
+ # Set UID for the new user (optional, but best practice)
4
  ARG APP_UID=1024
5
 
6
  # Create a non-root user
7
  RUN useradd --create-home --uid ${APP_UID} appuser
8
 
9
+ # Set working directory
10
  WORKDIR /home/appuser/app
11
 
12
  # Install n8n globally
 
18
  # Expose port 7860 (required by Hugging Face Spaces)
19
  EXPOSE 7860
20
 
21
+ # Start n8n directly
22
  CMD ["n8n", "start", "--port", "7860"]