Skip to content

Commit 579b8bb

Browse files
committed
Fix Dockerfile
1 parent 08d15bf commit 579b8bb

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Dockerfile

+6-3
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,10 @@ RUN cargo chef prepare --recipe-path recipe.json
1212

1313
FROM backend-chef AS backend
1414

15+
ENV OPENSSL_DIR=/usr
16+
1517
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
1719
RUN cargo chef cook --release --recipe-path recipe.json
1820
COPY src-rust/ .
1921
RUN cargo build --release
@@ -23,14 +25,15 @@ FROM node:20.10-alpine3.18 as frontend
2325

2426
WORKDIR /src
2527
COPY . .
26-
RUN npm install && npm run build
28+
RUN npm install
29+
RUN npm run build
2730

2831

2932
FROM alpine:3.18
3033

3134
WORKDIR /var/www
35+
RUN apk add --no-cache gcompat
3236
COPY --from=backend /src/target/release/coterm /var/www/
3337
COPY --from=frontend /src/build /var/www/public
3438

35-
3639
CMD ["/var/www/coterm"]

0 commit comments

Comments
 (0)