-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (23 loc) · 1.11 KB
/
Copy pathDockerfile
File metadata and controls
29 lines (23 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
FROM node:22.23.2-alpine3.24
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
build-essential ca-certificates chromium cmake curl file git jq ninja-build \
openssh-client python3 python3-pip ripgrep rsync sqlite3 unzip zip \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /opt/maskshift
COPY . .
RUN chmod +x /opt/maskshift/bin/maskshift.mjs /opt/maskshift/start.sh /opt/maskshift/install.sh \
&& ln -sf /opt/maskshift/bin/maskshift.mjs /usr/local/bin/maskshift \
&& mkdir -p /data /workspace
ENV MASKSHIFT_HOME=/data \
MASKSHIFT_MODEL=ollama:auto \
TERM=xterm-256color \
COLORTERM=truecolor
VOLUME ["/data", "/workspace"]
WORKDIR /workspace
# MaskShift is a terminal application: run it with `docker run -it` so the TUI
# gets a real TTY, or pass a subcommand such as `run "…"` for headless work.
HEALTHCHECK --interval=60s --timeout=20s --start-period=15s --retries=3 \
CMD node --no-warnings /opt/maskshift/bin/maskshift.mjs doctor --json > /dev/null || exit 1
ENTRYPOINT ["node", "--no-warnings", "/opt/maskshift/bin/maskshift.mjs"]
CMD ["tui", "--workspace", "/workspace"]