Skip to content

Commit

Permalink
fix: finally?
Browse files Browse the repository at this point in the history
  • Loading branch information
j1nxie committed Apr 7, 2024
1 parent 9e9d297 commit 6299d40
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
FROM rust:1.76.0-alpine3.19 as build

RUN apk add g++ pkgconfig openssl-dev alpine-sdk
ENV OPENSSL_LIB_DIR=/usr/lib
ENV OPENSSL_INCLUDE_DIR=/usr/include

WORKDIR /app
COPY Cargo.toml Cargo.toml
Expand All @@ -9,9 +11,10 @@ RUN mkdir src; echo 'fn main() {}' > src/main.rs
RUN cargo install --locked --path .
RUN rm -rf src;
COPY src src
RUN touch src/main.rs
RUN cargo build --release

FROM alpine:3.19.1 as run
WORKDIR /app
COPY --from=build /app/target/release/tairitsu-rs .
ENTRYPOINT /app/tairitsu-rs
CMD [ "/app/tairitsu-rs" ]

0 comments on commit 6299d40

Please sign in to comment.