2022-07-08 18:35:19 +00:00
|
|
|
FROM rust:1.31
|
|
|
|
|
|
|
|
WORKDIR /usr/src/user-svc
|
|
|
|
|
2022-07-08 18:43:21 +00:00
|
|
|
COPY . .
|
|
|
|
|
2022-07-08 18:35:19 +00:00
|
|
|
RUN cargo build --release
|
|
|
|
|
|
|
|
COPY ./target/release/user-svc-actix .
|
|
|
|
|
2022-07-08 18:43:21 +00:00
|
|
|
RUN rm -r `ls | grep -v "user-svc-actix"`
|
|
|
|
|
2022-07-08 18:35:19 +00:00
|
|
|
CMD ["user-svc-actix"]
|