File tree 1 file changed +8
-7
lines changed
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
+
1
8
FROM ubuntu:20.04 as build
2
9
3
10
RUN apt-get update -y && \
@@ -16,19 +23,13 @@ RUN apt-get update -y && \
16
23
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- \
17
24
--default-toolchain stable --profile minimal -y
18
25
19
- RUN curl -fsSL https://deb.nodesource.com/setup_lts.x | bash - && \
20
- apt-get install -y nodejs
21
-
22
26
COPY ./Cargo.lock ./Cargo.lock
23
27
COPY ./Cargo.toml ./Cargo.toml
24
28
COPY ./collector ./collector
25
29
COPY ./database ./database
26
30
COPY ./intern ./intern
27
31
COPY ./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
32
33
33
34
RUN bash -c 'source $HOME/.cargo/env && cargo build --release -p site'
34
35
RUN 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