diff --git a/Dockerfile b/Dockerfile index 1dbeedc..8f9e078 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,25 +20,25 @@ FROM chef AS builder WORKDIR /app -RUN apt update && apt install -y curl wget - COPY --from=planner /app/recipe.json recipe.json RUN cargo chef cook --release --recipe-path recipe.json COPY . . -RUN echo -e 'building binary with feature "${FEATURES}"' +RUN echo -e 'building binary with feature "$FEATURES"' RUN cargo install ${FEATURES} --bins --path . # Target layer based on tiny official ubuntu image with neccessary binaries and data to run. FROM ubuntu:rolling +RUN apt update && apt install -y curl + WORKDIR /app COPY --from=builder /app/target/release/news-rss . ENTRYPOINT ["/app/news-rss"] -EXPOSE 2892 +EXPOSE 2865 diff --git a/config/production.toml b/config/production.toml index 0dea285..82375a8 100644 --- a/config/production.toml +++ b/config/production.toml @@ -1,6 +1,9 @@ [logger] level = "info" +[server] +address = "0.0.0.0:2865" + [cache.local] expired_secs = 10368000 diff --git a/docker-compose.yaml b/docker-compose.yaml index 969282f..967dda2 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -43,7 +43,7 @@ services: - redis - pgsql ports: - - '2895:2895' + - '2865:2865' volumes: - './config:/app/config:ro' environment: