Make docker container ready for final submission
This commit is contained in:
parent
3b4e3d92fb
commit
dc5c5940ef
2 changed files with 25 additions and 0 deletions
24
.dockerignore
Normal file
24
.dockerignore
Normal 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
|
|
@ -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"]
|
||||
|
||||
|
|
Reference in a new issue