Skip to content
Merged
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
7 changes: 5 additions & 2 deletions Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ RUN patch -p1 < /tmp/patches/node-pty.patch && \
node /tmp/patches/deviceid.js && \
node /tmp/patches/platform.js

RUN npm rebuild node-pty @vscode/spdlog @parcel/watcher @vscode/native-watchdog
RUN npm install --no-audit --no-fund @vscode/fs-copyfile && \
npm rebuild node-pty @vscode/spdlog @parcel/watcher @vscode/native-watchdog

# Install code-server root deps + run postinstall (compiles argon2, node-pty etc.)
WORKDIR /usr/local/lib/node_modules/code-server
Expand All @@ -78,7 +79,7 @@ ARG FREEBSD_ARCH=amd64
ARG APP_VERSION=""
ARG UPSTREAM_URL="https://registry.npmjs.org/code-server/latest"
ARG UPSTREAM_JQ=".version"
ARG PACKAGES="node22 npm-node22 ca_root_nss libinotify doas python3 gmake gcc llvm FreeBSD-clang FreeBSD-toolchain"
ARG PACKAGES="node22 npm-node22 ca_root_nss libinotify doas python3 gmake gcc llvm FreeBSD-clang FreeBSD-toolchain git FreeBSD-ssh ripgrep"

LABEL org.opencontainers.image.title="code-server" \
org.opencontainers.image.description="code-server on FreeBSD." \
Expand Down Expand Up @@ -109,6 +110,8 @@ RUN pkg update && \
COPY --from=builder /app/version /app/version
COPY --from=builder /usr/local/lib/node_modules /usr/local/lib/node_modules
RUN ln -sf /usr/local/lib/node_modules/code-server/out/node/entry.js /usr/local/bin/code-server && \
mkdir -p /usr/local/lib/node_modules/code-server/lib/vscode/node_modules/@vscode/ripgrep/bin && \
ln -sf /usr/local/bin/rg /usr/local/lib/node_modules/code-server/lib/vscode/node_modules/@vscode/ripgrep/bin/rg && \
chmod -R o+rX /usr/local/lib/node_modules

# Copy root filesystem
Expand Down
7 changes: 5 additions & 2 deletions Containerfile.j2
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ RUN patch -p1 < /tmp/patches/node-pty.patch && \
node /tmp/patches/deviceid.js && \
node /tmp/patches/platform.js

RUN npm rebuild node-pty @vscode/spdlog @parcel/watcher @vscode/native-watchdog
RUN npm install --no-audit --no-fund @vscode/fs-copyfile && \
npm rebuild node-pty @vscode/spdlog @parcel/watcher @vscode/native-watchdog

# Install code-server root deps + run postinstall (compiles argon2, node-pty etc.)
WORKDIR /usr/local/lib/node_modules/code-server
Expand All @@ -72,7 +73,7 @@ ARG FREEBSD_ARCH=amd64
ARG APP_VERSION=""
ARG UPSTREAM_URL="https://registry.npmjs.org/code-server/latest"
ARG UPSTREAM_JQ=".version"
ARG PACKAGES="node22 npm-node22 ca_root_nss libinotify doas python3 gmake gcc llvm FreeBSD-clang FreeBSD-toolchain"
ARG PACKAGES="node22 npm-node22 ca_root_nss libinotify doas python3 gmake gcc llvm FreeBSD-clang FreeBSD-toolchain git FreeBSD-ssh ripgrep"

LABEL org.opencontainers.image.title="code-server" \
org.opencontainers.image.description="code-server on FreeBSD." \
Expand Down Expand Up @@ -103,6 +104,8 @@ RUN pkg update && \
COPY --from=builder /app/version /app/version
COPY --from=builder /usr/local/lib/node_modules /usr/local/lib/node_modules
RUN ln -sf /usr/local/lib/node_modules/code-server/out/node/entry.js /usr/local/bin/code-server && \
mkdir -p /usr/local/lib/node_modules/code-server/lib/vscode/node_modules/@vscode/ripgrep/bin && \
ln -sf /usr/local/bin/rg /usr/local/lib/node_modules/code-server/lib/vscode/node_modules/@vscode/ripgrep/bin/rg && \
chmod -R o+rX /usr/local/lib/node_modules

# Copy root filesystem
Expand Down
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,10 @@ VS Code in the browser — run a full development environment on your FreeBSD se
| :--- | :--- | :--- |
| `latest` | **Upstream Binary**. Built from official release. | Most users. Matches Linux Docker behavior. |


## Prerequisites

Before deploying, ensure your host environment is ready. See the [Quick Start Guide](https://daemonless.io/guides/quick-start) for host setup instructions.


## Deployment

### Podman Compose
Expand Down Expand Up @@ -96,7 +94,6 @@ OPTION from=ghcr.io/daemonless/code-server:${tag}
### Podman CLI

```bash

podman run -d --name code-server \
-p 8080:8080 \
-e PUID=1000 \
Expand Down Expand Up @@ -125,7 +122,6 @@ podman run -d --name code-server \
- "/path/to/containers/code-server:/config"
```


## Parameters

### Environment Variables
Expand Down
Loading