mrlectus commited on
Commit
96e1fec
·
verified ·
1 Parent(s): ff111ad

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -11
Dockerfile CHANGED
@@ -20,21 +20,19 @@ RUN \
20
  FROM base AS dev
21
  WORKDIR /app
22
  COPY --from=deps --link /app/node_modules ./node_modules
23
- COPY --link . .
24
-
25
- # Expose the port for development server
26
- EXPOSE 3000
27
-
28
- # Create and set proper permissions for .cache directories
29
- RUN mkdir -p /app/node_modules/@xenova/.cache/
30
- RUN mkdir -p /app/.cache/
31
- RUN chmod 777 -R /app/node_modules/@xenova/
32
- RUN chmod 777 -R /app/.cache
33
 
34
  # Set environment variables for development
35
  ENV NODE_ENV development
36
  ENV PORT 3000
37
  ENV HOSTNAME 0.0.0.0
38
 
 
 
 
 
 
 
 
39
  # Start the development server
40
- CMD ["npm", "run", "dev"]
 
20
  FROM base AS dev
21
  WORKDIR /app
22
  COPY --from=deps --link /app/node_modules ./node_modules
23
+ COPY --link . .
 
 
 
 
 
 
 
 
 
24
 
25
  # Set environment variables for development
26
  ENV NODE_ENV development
27
  ENV PORT 3000
28
  ENV HOSTNAME 0.0.0.0
29
 
30
+ # Ensure proper permissions for critical directories
31
+ RUN mkdir -p /app/.next /app/.cache /app/node_modules/@xenova/.cache/
32
+ RUN chmod -R 777 /app/.next /app/.cache /app/node_modules/@xenova/.cache/
33
+
34
+ # Expose the port for development server
35
+ EXPOSE 3000
36
+
37
  # Start the development server
38
+ CMD ["npm", "run", "dev"]