Skip to content

Commit 41f541a

Browse files
committed
temp
1 parent 500f426 commit 41f541a

File tree

2 files changed

+4
-14
lines changed

2 files changed

+4
-14
lines changed

Dockerfile

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,30 +14,21 @@
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

1919
LABEL org.opencontainers.image.title="Parseable"
2020
LABEL maintainer="Parseable Team <[email protected]>"
2121
LABEL org.opencontainers.image.vendor="Cloudnatively Pvt Ltd"
2222
LABEL org.opencontainers.image.licenses="AGPL-3.0"
2323

2424
WORKDIR /parseable
25-
2625
COPY . .
2726
RUN 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
3329
FROM gcr.io/distroless/cc-debian11:nonroot
3430

35-
ENV LD_LIBRARY_PATH=/app/lib
36-
3731
WORKDIR /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

4334
CMD ["parseable"]

docker-compose.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)