bfile/filed/Dockerfile.dev

18 lines
372 B
Docker
Raw Normal View History

2023-09-29 12:56:35 +02:00
# --- build ---
2023-09-30 06:49:59 +02:00
FROM rust as builder
2023-09-29 12:56:35 +02:00
2023-09-30 06:49:59 +02:00
WORKDIR /opt/code
2023-09-29 12:56:35 +02:00
COPY . .
2023-09-30 11:26:47 +02:00
# No build is done during this step
2023-09-30 06:49:59 +02:00
# since the directory will be mounted anyways
# to the dev's machine.
2023-09-29 12:56:35 +02:00
2023-09-30 06:49:59 +02:00
# Therefore installing & compiling in the dockerfile
# would be moronic, to say at least
2023-09-29 12:56:35 +02:00
2023-09-30 11:26:47 +02:00
# However, cargo watch needs to be installed
RUN cargo install cargo-watch
CMD [ "/opt/code/dev-entry.sh" ]