user-svc/Dockerfile

13 lines
185 B
Docker
Raw Normal View History

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"]