Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: docker compose fixes #8

Merged
merged 1 commit into from
Nov 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 3 additions & 0 deletions config/production.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
[logger]
level = "info"

[server]
address = "0.0.0.0:2865"

[cache.local]
expired_secs = 10368000

Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ services:
- redis
- pgsql
ports:
- '2895:2895'
- '2865:2865'
volumes:
- './config:/app/config:ro'
environment:
Expand Down
Loading