Skip to content

Commit

Permalink
fix docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
robatipoor committed Mar 28, 2024
1 parent fd8e9d4 commit 043a465
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ RUN apt-get update && apt-get install lld clang -y

COPY . .

RUN cargo build --bin api --release
RUN cargo build --bin pf-api --release

# deploy stage
FROM debian:bookworm-slim
Expand All @@ -20,7 +20,7 @@ WORKDIR /workspace
COPY api/settings settings

# copy binary and configuration files
COPY --from=builder /workspace/target/release/api .
COPY --from=builder /workspace/target/release/pf-api .

# expose port
EXPOSE 8080
Expand All @@ -29,4 +29,4 @@ ENV RUST_LOG info
ENV PF__SERVER__HOST '0.0.0.0'

# run the binary
ENTRYPOINT ["./api","--settings","settings/base.toml"]
ENTRYPOINT ["./pf-api","--settings","settings/base.toml"]

0 comments on commit 043a465

Please sign in to comment.