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 06:49:59 +02:00
|
|
|
# No build or install is done during this step
|
|
|
|
# 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 06:49:59 +02:00
|
|
|
CMD [ "dev-entry.sh" ]
|