Commit 579b8bb 1 parent 08d15bf commit 579b8bb Copy full SHA for 579b8bb
File tree 1 file changed +6
-3
lines changed
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -12,8 +12,10 @@ RUN cargo chef prepare --recipe-path recipe.json
12
12
13
13
FROM backend-chef AS backend
14
14
15
+ ENV OPENSSL_DIR=/usr
16
+
15
17
COPY --from=backend-planner /src/recipe.json recipe.json
16
- RUN apk add --no-cache pkgconfig openssl-dev musl -dev
18
+ RUN apk add --no-cache openssl-dev
17
19
RUN cargo chef cook --release --recipe-path recipe.json
18
20
COPY src-rust/ .
19
21
RUN cargo build --release
@@ -23,14 +25,15 @@ FROM node:20.10-alpine3.18 as frontend
23
25
24
26
WORKDIR /src
25
27
COPY . .
26
- RUN npm install && npm run build
28
+ RUN npm install
29
+ RUN npm run build
27
30
28
31
29
32
FROM alpine:3.18
30
33
31
34
WORKDIR /var/www
35
+ RUN apk add --no-cache gcompat
32
36
COPY --from=backend /src/target/release/coterm /var/www/
33
37
COPY --from=frontend /src/build /var/www/public
34
38
35
-
36
39
CMD ["/var/www/coterm" ]
You can’t perform that action at this time.
0 commit comments