NasarDope commited on
Commit
d213b84
·
verified ·
1 Parent(s): 51f16a9

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -6
Dockerfile CHANGED
@@ -1,13 +1,13 @@
1
- # Official 2026 Stable Image
2
  FROM ghcr.io/anomalyco/opencode:latest
3
 
4
  USER root
5
- # Create a folder for your work
6
- RUN mkdir -p /home/user/app/project && chmod -R 777 /home/user/app
7
  WORKDIR /home/user/app
8
 
9
- ENV PORT=7860
10
  EXPOSE 7860
11
 
12
- # This command tells it to start the WEB UI in the 'project' folder
13
- CMD ["opencode", "web", "--host", "0.0.0.0", "--port", "7860", "--no-auth", "project"]
 
1
+ # Official 2026 OpenCode Engine
2
  FROM ghcr.io/anomalyco/opencode:latest
3
 
4
  USER root
5
+ # Create the project directory and force permissions
6
+ RUN mkdir -p /home/user/app/my_coding_project && chmod -R 777 /home/user/app
7
  WORKDIR /home/user/app
8
 
9
+ ENV PORT=7860 HOME=/home/user
10
  EXPOSE 7860
11
 
12
+ # The '.' at the end is the 'Positionals' it is asking for in your screenshot
13
+ CMD ["opencode", "web", "--host", "0.0.0.0", "--port", "7860", "--no-auth", "."]