Update Dockerfile
Browse files- Dockerfile +12 -1
Dockerfile
CHANGED
|
@@ -11,4 +11,15 @@ ENV PORT=7860
|
|
| 11 |
EXPOSE 7860
|
| 12 |
|
| 13 |
# Start directly in web mode
|
| 14 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
EXPOSE 7860
|
| 12 |
|
| 13 |
# Start directly in web mode
|
| 14 |
+
# Final Stable 2026 Version
|
| 15 |
+
FROM ghcr.io/anomalyco/opencode:latest
|
| 16 |
+
|
| 17 |
+
USER root
|
| 18 |
+
RUN mkdir -p /home/user/app/my-project && chmod -R 777 /home/user/app
|
| 19 |
+
WORKDIR /home/user/app
|
| 20 |
+
|
| 21 |
+
ENV PORT=7860
|
| 22 |
+
EXPOSE 7860
|
| 23 |
+
|
| 24 |
+
# We add "." at the end to tell it to start the project in the current folder
|
| 25 |
+
CMD ["opencode", "web", "--host", "0.0.0.0", "--port", "7860", "--no-auth", "."]
|