43 lines
710 B
Docker
43 lines
710 B
Docker
FROM ubuntu:latest
|
|
|
|
WORKDIR /app
|
|
|
|
RUN apt update
|
|
|
|
RUN apt install -y curl unzip
|
|
|
|
RUN curl -o- https://fnm.vercel.app/install | bash
|
|
|
|
RUN source /root/.bashrc
|
|
|
|
RUN fnm install 24
|
|
|
|
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
|
|
|
|
ENV COMMIT_SHA=$COMMIT_SHA \
|
|
API_BASE_URL=$API_BASE_URL
|
|
|
|
RUN apt update && apt install -y \
|
|
nsis \
|
|
lld \
|
|
llvm
|
|
|
|
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
|
|
|
|
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
|