forked from security-union/videocall-rs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.yew
22 lines (17 loc) · 635 Bytes
/
Dockerfile.yew
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM securityunion/yew:1.72-slim as build
# TODO - this is a hack to get around the fact that the yew-ui crate is not bundled with the backend
ENV ENABLE_OAUTH=false
ENV LOGIN_URL=""
ENV ACTIX_UI_BACKEND_URL="wss:https://api.rustlemania.com"
ENV WEBTRANSPORT_HOST="https://transport.rustlemania.com"
ENV WEBTRANSPORT_ENABLED="false"
ENV E2EE_ENABLED="false"
ENV USERS_ALLOWED_TO_STREAM=""
WORKDIR /app
COPY . .
WORKDIR /app/yew-ui
RUN rustup target add wasm32-unknown-unknown
RUN trunk build --release
FROM nginx:1.21.5-alpine as production
COPY nginx.conf /etc/nginx/nginx.conf
COPY --from=build /app/yew-ui/dist /usr/share/nginx/html