NasarDope commited on
Commit
91507c4
·
verified ·
1 Parent(s): 4f3f3ba

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -5
Dockerfile CHANGED
@@ -1,10 +1,10 @@
1
- FROM ghcr.io/opencode/opencode:latest
 
2
 
3
  USER root
4
- RUN mkdir -p /home/user/app && chmod -R 777 /home/user/app
5
- WORKDIR /home/user/app
6
 
7
- # Set required environment variables for 2026
8
  ENV PORT=7860 \
9
  OPENCODE_HOST=0.0.0.0 \
10
  OPENCODE_PORT=7860 \
@@ -12,5 +12,5 @@ ENV PORT=7860 \
12
 
13
  EXPOSE 7860
14
 
15
- # We use the 'serve' command instead of 'web' for the latest stable build
16
  CMD ["opencode", "serve", "--host", "0.0.0.0", "--port", "7860", "."]
 
1
+ # Using the public mirror to bypass the 403 Forbidden error
2
+ FROM ghcr.io/all-in-aigc/opencode:latest
3
 
4
  USER root
5
+ RUN mkdir -p /app && chmod -R 777 /app
6
+ WORKDIR /app
7
 
 
8
  ENV PORT=7860 \
9
  OPENCODE_HOST=0.0.0.0 \
10
  OPENCODE_PORT=7860 \
 
12
 
13
  EXPOSE 7860
14
 
15
+ # Starting the server in the current directory
16
  CMD ["opencode", "serve", "--host", "0.0.0.0", "--port", "7860", "."]