Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +12 -9
Dockerfile
CHANGED
@@ -1,18 +1,21 @@
|
|
1 |
# Use the openhands image as the base image
|
2 |
FROM docker.all-hands.dev/all-hands-ai/openhands:0.24
|
3 |
|
4 |
-
# Set
|
5 |
ENV SANDBOX_RUNTIME_CONTAINER_IMAGE="docker.all-hands.dev/all-hands-ai/runtime:0.24-nikolaik"
|
6 |
ENV LOG_ALL_EVENTS=true
|
7 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
# Expose the port that the application listens on
|
9 |
EXPOSE 3000
|
10 |
|
11 |
-
#
|
12 |
-
|
13 |
-
# Otherwise, add the command to launch your application. For example:
|
14 |
-
# CMD ["/start.sh"]
|
15 |
-
|
16 |
-
# (Optional) If your application writes state to ~/.openhands-state,
|
17 |
-
# consider mapping that to a persistent directory available in Spaces,
|
18 |
-
# such as /workspace/state, and update your app accordingly.
|
|
|
1 |
# Use the openhands image as the base image
|
2 |
FROM docker.all-hands.dev/all-hands-ai/openhands:0.24
|
3 |
|
4 |
+
# Set environment variables
|
5 |
ENV SANDBOX_RUNTIME_CONTAINER_IMAGE="docker.all-hands.dev/all-hands-ai/runtime:0.24-nikolaik"
|
6 |
ENV LOG_ALL_EVENTS=true
|
7 |
|
8 |
+
# Ensure the entrypoint script has execute permissions
|
9 |
+
RUN chmod +x /app/entrypoint.sh
|
10 |
+
|
11 |
+
# Set appropriate ownership to avoid permission issues in Hugging Face Spaces
|
12 |
+
RUN chown -R 1000:1000 /app
|
13 |
+
|
14 |
+
# Switch to the non-root user expected by Spaces
|
15 |
+
USER 1000
|
16 |
+
|
17 |
# Expose the port that the application listens on
|
18 |
EXPOSE 3000
|
19 |
|
20 |
+
# Run the entrypoint script
|
21 |
+
CMD ["/bin/bash", "-c", "/app/entrypoint.sh"]
|
|
|
|
|
|
|
|
|
|
|
|