1
0
Fork 0

Make docker container ready for final submission

This commit is contained in:
Vili Sinervä 2025-02-26 19:29:14 +02:00
parent 3b4e3d92fb
commit dc5c5940ef
No known key found for this signature in database
GPG key ID: DF8FEAF54EFAC996
2 changed files with 25 additions and 0 deletions

24
.dockerignore Normal file
View file

@ -0,0 +1,24 @@
# ---> Rust
# Generated by Cargo
# will have compiled files and executables
debug/
target/
# These are backup files generated by rustfmt
**/*.rs.bk
# MSVC Windows builds of rustc generate these, which store debugging information
*.pdb
# ---> Nix
# Ignore build outputs from performing a nix-build or `nix build` command
result
result-*
# Test gadget
test-gadget.py
.test-gadget/
# Added by cargo
/target

View file

@ -6,6 +6,7 @@ RUN cargo install --path .
FROM debian:stable-slim
RUN apt-get update && apt-get install -y libc6 gcc && rm -rf /var/lib/apt/lists/*
COPY --from=builder /usr/local/cargo/bin/compiler-course /usr/local/bin/compiler-course
COPY . .
EXPOSE 3000
CMD ["compiler-course"]