actions-test/Dockerfile

19 lines
343 B
Docker
Raw Permalink Normal View History

2023-08-03 18:33:17 -05:00
# builder
FROM rust:1.70 as builder
WORKDIR /usr/src/actions-test
COPY . .
RUN cargo install --path .
# runner
FROM debian:bullseye-slim
RUN apt-get update && rm -rf /var/lib/apt/lists/*
COPY --from=builder /usr/local/cargo/bin/actions-test /usr/local/bin/actions-test
RUN useradd -m runner
USER runner
EXPOSE 8000
CMD [ "actions-test" ]