generated from security-union/yew-actix-template
-
Notifications
You must be signed in to change notification settings - Fork 117
/
Dockerfile.actix
20 lines (14 loc) · 653 Bytes
/
Dockerfile.actix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM securityunion/rustlemania-api-base:1.72-slim as build
ENV CARGO_TARGET_DIR=/app/actix-api/target
COPY . /app
WORKDIR /app/actix-api
RUN cargo build --release
FROM debian:bookworm-slim as production
RUN apt-get --yes update && apt-get --yes install libssl-dev
COPY --from=build /usr/bin/dbmate /usr/bin/dbmate
COPY --from=build /app/actix-api/target/release/websocket_server /usr/bin/websocket_server
COPY --from=build /app/actix-api/target/release/webtransport_server /usr/bin/webtransport_server
COPY --from=build /app/actix-api/startup.sh /usr/bin/startup.sh
COPY --from=build /app/dbmate /app/dbmate
STOPSIGNAL SIGINT
CMD [ "startup.sh" ]