diff --git a/Cross.toml b/Cross.toml new file mode 100644 index 0000000..acbc7ef --- /dev/null +++ b/Cross.toml @@ -0,0 +1,5 @@ +[build] +default-target = "x86_64-unknown-linux-gnu" + +[target.x86_64-unknown-linux-gnu] +pre-build = ["apt-get install --assume-yes libssl-dev"] diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index fd7d02d..0000000 --- a/Dockerfile +++ /dev/null @@ -1,18 +0,0 @@ -FROM rust:1.72 - -RUN USER=root cargo new --bin nederlandskie -WORKDIR /nederlandskie - -COPY ./Cargo.lock ./Cargo.lock -COPY ./Cargo.toml ./Cargo.toml - -RUN cargo build --release -RUN rm src/*.rs - -COPY ./src ./src - -RUN rm ./target/release/deps/nederlandskie* -RUN cargo build --release - -EXPOSE 3000 -CMD ["./target/release/nederlandskie"] diff --git a/src/processes/feed_server/server.rs b/src/processes/feed_server/server.rs index d53c34c..aa850e3 100644 --- a/src/processes/feed_server/server.rs +++ b/src/processes/feed_server/server.rs @@ -46,7 +46,7 @@ impl FeedServer { algos: self.algos, }); - let addr = SocketAddr::from(([127, 0, 0, 1], 3000)); + let addr = SocketAddr::from(([0, 0, 0, 0], 3030)); info!("Serving feed on {}", addr);