Files
cutThink_lite/Dockerfile.build

39 lines
750 B
Docker
Raw Normal View History

# Dockerfile for building CutThenThink Lite on Linux
FROM ubuntu:22.04
# Prevent interactive prompts
ENV DEBIAN_FRONTEND=noninteractive
ENV TZ=UTC
# Install dependencies
RUN apt-get update && apt-get install -y \
curl \
git \
libgtk-3-dev \
libwebkit2gtk-4.0-dev \
libappindicator3-dev \
librsvg2-dev \
patchelf \
nodejs \
npm \
&& rm -rf /var/lib/apt/lists/*
# Install Rust
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
ENV PATH="/root/.cargo/bin:${PATH}"
# Set working directory
WORKDIR /app
# Copy project files
COPY package*.json ./
RUN npm ci
COPY . .
# Build application
RUN npm run build
RUN npm run tauri build
# Output will be in src-tauri/target/release/bundle/