This repository has been archived on 2026-04-25. You can view files and clone it, but cannot push or open issues or pull requests.
RustyPass/Dockerfile

14 lines
240 B
Text
Raw Normal View History

2024-06-19 15:02:12 -05:00
## Setup
# Use the Rust container as a base
2024-06-19 14:33:46 -05:00
FROM rust
2024-06-19 15:02:12 -05:00
# Setup directories
RUN mkdir /src /build
2024-06-19 14:33:46 -05:00
WORKDIR /src
2024-06-19 15:02:12 -05:00
# Copy project into Docker image
2024-06-19 14:33:46 -05:00
COPY Cargo.toml .
2024-06-19 15:02:12 -05:00
COPY src/ ./src
2024-06-19 14:33:46 -05:00
2024-06-19 15:02:12 -05:00
## Run
CMD cargo build && cp ./target/debug/RustyPass /build/