File tree Expand file tree Collapse file tree 2 files changed +4
-14
lines changed
Expand file tree Collapse file tree 2 files changed +4
-14
lines changed Original file line number Diff line number Diff line change 1414# along with this program. If not, see <http://www.gnu.org/licenses/>.
1515
1616# build stage
17- FROM rust:1.67.0-bullseye as build
17+ FROM rust:1.67.0-bullseye as builder
1818
1919LABEL org.opencontainers.image.title="Parseable"
2020LABEL maintainer=
"Parseable Team <[email protected] >" 2121LABEL org.opencontainers.image.vendor="Cloudnatively Pvt Ltd"
2222LABEL org.opencontainers.image.licenses="AGPL-3.0"
2323
2424WORKDIR /parseable
25-
2625COPY . .
2726RUN cargo build --release
2827
29- RUN mkdir -p /app/lib
30- RUN cp -LR $(ldd /parseable/target/release/parseable | grep "=>" | cut -d ' ' -f 3) /app/lib
31-
32- # run stage
28+ # final stage
3329FROM gcr.io/distroless/cc-debian11:nonroot
3430
35- ENV LD_LIBRARY_PATH=/app/lib
36-
3731WORKDIR /parseable
38-
39- COPY --from=build /app/lib /app/lib
40- COPY --from=build /lib64/ld-linux-x86-64.so.2 /app/lib/ld-linux-x86-64.so.2
41- COPY --from=build /parseable/target/release/parseable /usr/bin/parseable
32+ COPY --from=builder /parseable/target/release/parseable /usr/bin/parseable
4233
4334CMD ["parseable" ]
Original file line number Diff line number Diff line change @@ -30,7 +30,6 @@ services:
3030 - parseable-internal
3131
3232 parseable :
33- # image: parseable/parseable:v0.2.2-stage
3433 build :
3534 context : .
3635 dockerfile : Dockerfile
@@ -67,4 +66,4 @@ services:
6766 restart_policy :
6867 condition : on-failure
6968 delay : 10s
70- max_attempts : 3
69+ max_attempts : 1
You can’t perform that action at this time.
0 commit comments