chore: releasing beta build of autumn
This commit is contained in:
@@ -1 +1,12 @@
|
|||||||
# TODO: https://github.com/wader/static-ffmpeg
|
# Build Stage
|
||||||
|
FROM ghcr.io/revoltchat/base:latest AS builder
|
||||||
|
|
||||||
|
# Bundle Stage
|
||||||
|
FROM gcr.io/distroless/cc-debian12:nonroot
|
||||||
|
COPY --from=builder /home/rust/src/target/release/revolt-autumn ./
|
||||||
|
COPY --from=mwader/static-ffmpeg:7.0.2 /ffmpeg /usr/local/bin/
|
||||||
|
COPY --from=mwader/static-ffmpeg:7.0.2 /ffprobe /usr/local/bin/
|
||||||
|
|
||||||
|
EXPOSE 14704
|
||||||
|
USER nonroot
|
||||||
|
CMD ["./revolt-autumn"]
|
||||||
|
|||||||
@@ -77,7 +77,6 @@ async fn main() -> Result<(), std::io::Error> {
|
|||||||
.with_state(db);
|
.with_state(db);
|
||||||
|
|
||||||
// Configure TCP listener and bind
|
// Configure TCP listener and bind
|
||||||
tracing::info!("hi vscode, please port forward http://127.0.0.1:14704, thank you!");
|
|
||||||
let address = SocketAddr::from((Ipv4Addr::UNSPECIFIED, 14704));
|
let address = SocketAddr::from((Ipv4Addr::UNSPECIFIED, 14704));
|
||||||
let listener = TcpListener::bind(&address).await?;
|
let listener = TcpListener::bind(&address).await?;
|
||||||
axum::serve(listener, app.into_make_service()).await
|
axum::serve(listener, app.into_make_service()).await
|
||||||
|
|||||||
@@ -23,6 +23,7 @@ echo "Building images, will tag for ghcr.io with $TAG!"
|
|||||||
docker build -t ghcr.io/revoltchat/base:latest -f Dockerfile.useCurrentArch .
|
docker build -t ghcr.io/revoltchat/base:latest -f Dockerfile.useCurrentArch .
|
||||||
docker build -t ghcr.io/revoltchat/server:$TAG - < crates/delta/Dockerfile
|
docker build -t ghcr.io/revoltchat/server:$TAG - < crates/delta/Dockerfile
|
||||||
docker build -t ghcr.io/revoltchat/bonfire:$TAG - < crates/bonfire/Dockerfile
|
docker build -t ghcr.io/revoltchat/bonfire:$TAG - < crates/bonfire/Dockerfile
|
||||||
|
docker build -t ghcr.io/revoltchat/autumn:$TAG - < crates/services/autumn/Dockerfile
|
||||||
|
|
||||||
if [ "$DEBUG" = "true" ]; then
|
if [ "$DEBUG" = "true" ]; then
|
||||||
git restore Cargo.toml
|
git restore Cargo.toml
|
||||||
@@ -30,3 +31,4 @@ fi
|
|||||||
|
|
||||||
docker push ghcr.io/revoltchat/server:$TAG
|
docker push ghcr.io/revoltchat/server:$TAG
|
||||||
docker push ghcr.io/revoltchat/bonfire:$TAG
|
docker push ghcr.io/revoltchat/bonfire:$TAG
|
||||||
|
docker push ghcr.io/revoltchat/autumn:$TAG
|
||||||
|
|||||||
Reference in New Issue
Block a user