CrowdedGames.Group/Dockerfile

16 lines
288 B
Docker

# get a base
FROM debian:trixie-slim
# place the files into the image
WORKDIR /app
COPY . /app
# Dependencies
RUN apt update
RUN apt install rustc cargo -y
# Expose the port from docker-compose.yml
EXPOSE 5000
# Run the thing
CMD cargo run --manifest-path "/app/Cargo.toml" --release