Files
chad/client/Dockerfile.windows
opti1337 72f46df4d1
All checks were successful
Deploy / publish-windows (push) Successful in 19s
update
2025-12-23 00:59:01 +06:00

39 lines
745 B
Docker

FROM node:lts
WORKDIR /app
RUN corepack enable yarn
RUN yarn set version stable
COPY package.json yarn.lock .yarnrc.yml ./
RUN yarn install
COPY . .
ARG COMMIT_SHA=unknown
ARG API_BASE_URL
ARG TAURI_SIGNING_PRIVATE_KEY
ENV COMMIT_SHA=$COMMIT_SHA \
API_BASE_URL=$API_BASE_URL \
TAURI_SIGNING_PRIVATE_KEY=$TAURI_SIGNING_PRIVATE_KEY \
TAURI_SIGNING_PRIVATE_KEY_PASSWORD=
RUN apt update && apt install -y \
nsis \
clang \
lld \
llvm
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
ENV PATH=/root/.cargo/bin:$PATH
RUN rustup target add x86_64-pc-windows-msvc
RUN cargo install --locked cargo-xwin
RUN yarn tauri build --runner cargo-xwin --target x86_64-pc-windows-msvc
RUN ls -la