Skip to content

Commit 538cb56

Browse files
author
Dokploy Dev
committed
fix: move Dockerfile to repo root for Dokploy compatibility
Dokploy's build context resolves to the repo root, not the compose file directory. Moved Dockerfile to repo root so the build can find it.
1 parent 9618536 commit 538cb56

3 files changed

Lines changed: 13 additions & 2 deletions

File tree

Dockerfile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
FROM codercom/code-server:latest
2+
3+
USER root
4+
5+
# Install opencode CLI globally
6+
RUN curl -fsSL https://opencode.ai/install | sh
7+
8+
# Ensure opencode is in PATH for the coder user
9+
ENV PATH="${PATH}:/home/coder/.opencode/bin"
10+
11+
USER coder

dokploy/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626

2727
```
2828
code-server/
29+
├── Dockerfile # Custom image with opencode pre-installed
2930
├── dokploy/
30-
│ ├── Dockerfile # Custom image with opencode pre-installed
3131
│ ├── docker-compose.yml # Dokploy deployment config
3232
│ ├── .env # Environment variables
3333
│ ├── code-server-data/ # Persisted data (created automatically)

dokploy/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ version: '3.8'
33
services:
44
code-server:
55
build:
6-
context: .
6+
context: ..
77
dockerfile: Dockerfile
88
container_name: code-server
99
restart: unless-stopped

0 commit comments

Comments
 (0)