File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed
Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change 1+ FROM node:18 as frontend
2+
3+ COPY ./site ./site
4+ RUN cd site/frontend && npm ci
5+ RUN cd site/frontend && npm run check
6+ RUN cd site/frontend && npm run build
7+
18FROM ubuntu:20.04 as build
29
310RUN apt-get update -y && \
@@ -16,19 +23,13 @@ RUN apt-get update -y && \
1623RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- \
1724 --default-toolchain stable --profile minimal -y
1825
19- RUN curl -fsSL https://deb.nodesource.com/setup_lts.x | bash - && \
20- apt-get install -y nodejs
21-
2226COPY ./Cargo.lock ./Cargo.lock
2327COPY ./Cargo.toml ./Cargo.toml
2428COPY ./collector ./collector
2529COPY ./database ./database
2630COPY ./intern ./intern
2731COPY ./site ./site
28-
29- RUN cd site/frontend && npm ci
30- RUN cd site/frontend && npm run check
31- RUN cd site/frontend && npm run build
32+ COPY --from=frontend ./site/frontend/dist ./site/frontend/dist
3233
3334RUN bash -c 'source $HOME/.cargo/env && cargo build --release -p site'
3435RUN bash -c 'source $HOME/.cargo/env && cargo build --release --bin postgres-to-sqlite'
You can’t perform that action at this time.
0 commit comments