Updated dockerfile

This commit is contained in:
franklinblanco 2022-07-08 14:43:21 -04:00
parent 57f88e5101
commit 8c1b0d028d

View File

@ -2,8 +2,12 @@ FROM rust:1.31
WORKDIR /usr/src/user-svc WORKDIR /usr/src/user-svc
COPY . .
RUN cargo build --release RUN cargo build --release
COPY ./target/release/user-svc-actix . COPY ./target/release/user-svc-actix .
RUN rm -r `ls | grep -v "user-svc-actix"`
CMD ["user-svc-actix"] CMD ["user-svc-actix"]