diff --git a/backend/Dockerfile b/backend/Dockerfile index 94ad6fc..1c17bf6 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -12,8 +12,6 @@ COPY cdn cdn COPY src src COPY Cargo.toml Cargo.toml COPY Rocket.toml Rocket.toml -COPY static static -COPY templates templates RUN apt-get update && apt-get install -y libssl-dev pkg-config @@ -37,9 +35,7 @@ COPY --from=build /build/main ./ ## copy runtime assets which may or may not exist COPY --from=build /build/Rocket.toml ./Rocket.toml -COPY --from=build /build/static ./static COPY --from=build /build/cdn ./cdn -COPY --from=build /build/template[s] ./templates ## ensure the container listens globally on port 8000 ENV ROCKET_ADDRESS=0.0.0.0 diff --git a/backend/docker-compose.yml b/backend/docker-compose.yml index 4bef3b6..603491e 100644 --- a/backend/docker-compose.yml +++ b/backend/docker-compose.yml @@ -1,7 +1,7 @@ services: backend: container_name: chatapp_backend - image: git.zxq5.dev/zxq5/chatapp-backend:v0.4.0 + image: git.zxq5.dev/zxq5/chatapp-backend:v0.4.1 ports: - "8000:8000" depends_on: diff --git a/backend/src/api/auth.rs b/backend/src/api/auth.rs index f5320d4..b4c5bc9 100644 --- a/backend/src/api/auth.rs +++ b/backend/src/api/auth.rs @@ -37,7 +37,7 @@ pub async fn login( #[post("/invite", data = "