make Dockerfile.dev be dev version

This commit is contained in:
blek 2023-09-30 14:49:59 +10:00
parent 014c031fbc
commit 2674a53fdf
Signed by: blek
GPG Key ID: 14546221E3595D0C
1 changed files with 8 additions and 7 deletions

View File

@ -1,13 +1,14 @@
# --- build ---
FROM rust:alpine as builder
FROM rust as builder
WORKDIR /opt/build
WORKDIR /opt/code
COPY . .
RUN cargo b -r
# No build or install is done during this step
# since the directory will be mounted anyways
# to the dev's machine.
# --- deploy ---
FROM alpine
# Therefore installing & compiling in the dockerfile
# would be moronic, to say at least
COPY --from=builder /opt/build/target/release/filed /bin/filed
CMD [ "/bin/filed" ]
CMD [ "dev-entry.sh" ]