File tree Expand file tree Collapse file tree 4 files changed +12
-45
lines changed Expand file tree Collapse file tree 4 files changed +12
-45
lines changed Original file line number Diff line number Diff line change 11target
22Dockerfile
33dockerfile
4+ browser /node_modules
45.dockerignore
56.env
67.git
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ FROM node:20 as js-builder
2+ WORKDIR /app/browser
3+ ENV SHELL=bash
4+ RUN npm install -g pnpm
5+ COPY browser/package.json browser/pnpm-lock.yaml ./
6+ RUN pnpm install -r --frozen-lockfile
7+ COPY ./browser .
8+ RUN pnpm install -r --frozen-lockfile
9+ RUN pnpm build
10+
111FROM rust:latest as builder
212WORKDIR /app
313COPY . .
4- ENV SHELL=bash
5- # Install PNPM, source it and build the JS assets
6- RUN curl -fsSL https://get.pnpm.io/install.sh | sh -
7- RUN . /root/.bashrc
8- RUN cd browser && pnpm install && pnpm run build
9- RUN cd ..
14+ COPY --from=js-builder /app/browser/data-browser/dist /app/browser/data-browser/dist
1015# git-fetch-with-cli is a CI bugfix, we should be able to remove it later
1116RUN cargo build --release --bin atomic-server --config net.git-fetch-with-cli=true
1217
You can’t perform that action at this time.
0 commit comments