make Dockerfile.dev be dev version
This commit is contained in:
parent
014c031fbc
commit
2674a53fdf
|
@ -1,13 +1,14 @@
|
||||||
# --- build ---
|
# --- build ---
|
||||||
FROM rust:alpine as builder
|
FROM rust as builder
|
||||||
|
|
||||||
WORKDIR /opt/build
|
WORKDIR /opt/code
|
||||||
COPY . .
|
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 ---
|
# Therefore installing & compiling in the dockerfile
|
||||||
FROM alpine
|
# would be moronic, to say at least
|
||||||
|
|
||||||
COPY --from=builder /opt/build/target/release/filed /bin/filed
|
CMD [ "dev-entry.sh" ]
|
||||||
CMD [ "/bin/filed" ]
|
|
||||||
|
|
Loading…
Reference in New Issue