Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- 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 |
-
#
|
30 |
-
CMD ["
|
|
|
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"]
|