Skip to content
Open
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
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/config
/cursor
28 changes: 22 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
FROM ghcr.io/linuxserver/baseimage-kasmvnc:debianbookworm

LABEL maintainer="[email protected]" \
org.opencontainers.image.authors="[email protected]" \
org.opencontainers.image.source="https://github.com/Arfo-du-blo/cursor-in-browser/" \
org.opencontainers.image.title="Cursor in browser" \
org.opencontainers.image.description="Cursor container image allowing access via web browser"
org.opencontainers.image.authors="[email protected]" \
org.opencontainers.image.source="https://github.com/Arfo-du-blo/cursor-in-browser/" \
org.opencontainers.image.title="Cursor in browser" \
org.opencontainers.image.description="Cursor container image allowing access via web browser"

# Set version, display and download link
ARG CURSOR_VERSION=1.2.0
Expand All @@ -14,8 +14,24 @@ ENV CURSOR_DOWNLOAD_URL=https://downloads.cursor.com/production/3c325775412a19b2
# Update and install necessary packages
RUN echo "**** install packages ****" && \
apt-get update && \
apt-get install -y --no-install-recommends curl fuse python3.11-venv libfuse2 python3-xdg libgtk-3-0 libnotify4 libatspi2.0-0 libsecret-1-0 libnss3 desktop-file-utils fonts-noto-color-emoji git ssh-askpass && \
apt-get autoclean && rm -rf /var/lib/apt/lists/* /var/tmp/* /tmp/*
apt-get install -y --no-install-recommends curl fuse python3.11-venv libfuse2 python3-xdg libgtk-3-0 libnotify4 libatspi2.0-0 libsecret-1-0 libnss3 desktop-file-utils fonts-noto-color-emoji git ssh-askpass

# Get librewolf version && and install binary
RUN if [ -z ${LIBREWOLF_VERSION+x} ]; then \
LIBREWOLF_VERSION=$(curl -sL https://repo.librewolf.net/dists/librewolf/main/binary-amd64/Packages \
| grep -A 4 'Package: librewolf' \
| awk '/Version:/ {print $2}' \
| sort -V \
| tail -1); \
fi && \
curl -o \
/tmp/librewolf.deb -L \
"https://repo.librewolf.net/pool/librewolf-${LIBREWOLF_VERSION}-linux-x86_64-deb.deb" && \
apt install -y --no-install-recommends \
/tmp/librewolf.deb

# Cleanup package install
RUN apt-get autoclean && rm -rf /var/lib/apt/lists/* /var/tmp/* /tmp/*

# Download Cursor AppImage and manage permissions
RUN curl --location --output Cursor.AppImage $CURSOR_DOWNLOAD_URL && \
Expand Down