Skip to content

Commit

Permalink
changed dockerfile to build from the root
Browse files Browse the repository at this point in the history
  • Loading branch information
kokal33 committed Oct 5, 2023
1 parent ee9cf95 commit f1ad033
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,11 @@ COPY ./database ./database
COPY ./lib ./lib
COPY ./fplus ./fplus

# Change workdir to http-server and then build
WORKDIR ./http-server
RUN cargo build --release

FROM debian:bullseye

# Needed for openssl(hyper uses it)
RUN apt-get update && apt-get install -y libssl-dev ca-certificates && rm -rf /var/lib/apt/lists/*
COPY --from=builder ./http-server/target/release/http-server ./target/release/http-server
COPY --from=builder ./target/release/http-server ./target/release/http-server
CMD ["/target/release/http-server"]

0 comments on commit f1ad033

Please sign in to comment.