Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
FROM node:20.16.0-alpine

# Install git, Python, build tools and other dependencies needed for native modules
RUN apk add --no-cache \
git \
python3 \
py3-pip \
make \
g++ \
libc6-compat \
openssl-dev

# Create symlink for python (some tools expect 'python' command)
RUN ln -sf python3 /usr/bin/python

# Install pnpm
RUN npm install -g [email protected]

# Install Biome
RUN npm install -g @biomejs/[email protected]

# Set working directory
WORKDIR /workspace

COPY . .

RUN pnpm install

CMD ["tail", "-f", "/dev/null"]
29 changes: 29 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"name": "Dokploy Development container",
"build": {
"context": "..",
"dockerfile": "Dockerfile"
},
"customizations": {
"vscode": {
"extensions": [
"biomejs.biome",
"sleistner.vscode-fileutils",
"GitHub.copilot",
"GitHub.copilot-chat",
"eamodio.gitlens",
"shd101wyy.markdown-preview-enhanced",
"GitHub.vscode-github-actions",
"redhat.vscode-yaml",
"bradlc.vscode-tailwindcss"
]
}
},
"remoteEnv": {
"NODE_TLS_REJECT_UNAUTHORIZED": "0"
},
"runArgs": [
"--name", "dokploy-devcontainer",
"--network", "host"
]
}
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,8 @@
"editor.codeActionsOnSave": {
"source.fixAll.biome": "explicit",
"source.organizeImports.biome": "explicit"
},
"[typescript]": {
"editor.defaultFormatter": "biomejs.biome"
}
}
Loading