fullstuckdev commited on
Commit
999b854
·
verified ·
1 Parent(s): 1b7eca3

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -5
Dockerfile CHANGED
@@ -7,10 +7,8 @@ RUN apt-get update && apt-get install -y \
7
  && rm -rf /var/lib/apt/lists/*
8
 
9
  ARG HF_TOKEN
10
- ENV NEXT_PUBLIC_HUGGINGFACE_API_KEY=$HF_TOKEN
11
 
12
- ENV PORT=7860
13
- ENV NODE_ENV=production
14
 
15
  # Set working directory
16
  WORKDIR /app
@@ -28,6 +26,8 @@ COPY . .
28
  # Note: We don't use turbopack for production builds
29
  RUN npm run build
30
 
31
- EXPOSE 7860
 
32
 
33
- CMD ["npm", "start", "--", "-p", "7860"]
 
 
7
  && rm -rf /var/lib/apt/lists/*
8
 
9
  ARG HF_TOKEN
 
10
 
11
+ ENV NEXT_PUBLIC_HUGGINGFACE_API_KEY=$HF_TOKEN
 
12
 
13
  # Set working directory
14
  WORKDIR /app
 
26
  # Note: We don't use turbopack for production builds
27
  RUN npm run build
28
 
29
+ # Expose the port the app runs on
30
+ EXPOSE 3000
31
 
32
+ # Start the application
33
+ CMD ["npm", "start"]