remove Dockerfile.old

This commit is contained in:
41666 2023-05-30 20:50:56 -04:00
parent 79d406cee6
commit 2dd19249db

View file

@ -1,18 +0,0 @@
FROM rust:1.65.0-bullseye AS builder
ARG SERVICE
WORKDIR /app
COPY Cargo.toml Cargo.lock ./
COPY services ./services
COPY hack ./hack
RUN cargo build --bin ${SERVICE} --release
FROM debian:bullseye-slim AS target
ARG SERVICE
RUN apt-get update && apt-get install -y ca-certificates && rm -rf /var/lib/apt/lists/*
COPY --from=builder /app/target/release/${SERVICE} /app
RUN chmod a+x /app
CMD /app