hprasath commited on
Commit
09c3faf
1 Parent(s): e7e6e29

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -5
Dockerfile CHANGED
@@ -16,9 +16,7 @@ COPY . .
16
 
17
  # Create a directory for temporary files
18
  RUN mkdir -p /code/temp && \
19
- chmod 777 /code/temp && \
20
- touch /code/javac_output.txt && \
21
- chmod 777 /code/javac_output.txt
22
 
23
  # Expose port
24
  EXPOSE 7860
@@ -26,5 +24,5 @@ EXPOSE 7860
26
  # Set user to non-root
27
  USER node
28
 
29
- # Compile and run Java code
30
- CMD ["sh", "-c", "javac -d /code/temp /code/temp/*.java 2>&1 | tee /code/javac_output.txt && java -cp /code/temp Main"]
 
16
 
17
  # Create a directory for temporary files
18
  RUN mkdir -p /code/temp && \
19
+ chmod 777 /code/temp
 
 
20
 
21
  # Expose port
22
  EXPOSE 7860
 
24
  # Set user to non-root
25
  USER node
26
 
27
+ # Start Node.js application
28
+ CMD ["node", "index.js"]