Skip to content

Commit

Permalink
fix Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Timtam committed Mar 5, 2024
1 parent 09293a9 commit df5b025
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM rust:1.76-slim-bookworm as build

# create a new empty shell project
RUN apt -y install libssl-dev && \
RUN apt-get update && apt-get -y install libssl-dev pkg-config && \
USER=root cargo new --bin hitster
WORKDIR /hitster

Expand All @@ -25,6 +25,13 @@ RUN cargo build --release
# our final base
FROM debian:bookworm-slim

# prepare the OS

RUN DEBIAN_FRONTEND=noninteractive apt-get update && \
apt-get -y install --no-install-recommends libssl-dev && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*

# copy the build artifact from the build stage
COPY --from=build /hitster/target/release/hitster-server ./hitster

Expand Down

0 comments on commit df5b025

Please sign in to comment.