-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8b5cdd5
commit c4efb43
Showing
1 changed file
with
11 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,25 @@ | ||
FROM rust:1.75-bullseye as build | ||
|
||
RUN apt-get update && \ | ||
apt-get upgrade -y && \ | ||
apt-get install -y openssl pkg-config libssl-dev | ||
|
||
COPY . /src | ||
WORKDIR /src | ||
RUN cargo build --release | ||
|
||
FROM debian:bullseye-slim | ||
|
||
RUN apt-get update && \ | ||
apt-get upgrade -y && \ | ||
apt-get install -y libssl1.1 ca-certificates && \ | ||
apt-get autoremove -y && \ | ||
apt-get clean -y | ||
|
||
COPY COPYING ./ | ||
|
||
COPY --from=build /src/target/release/quartermaster ./quartermaster | ||
|
||
EXPOSE 8000 | ||
ENTRYPOINT ["./quartermaster"] | ||
CMD [] |