production deployment in docker

This commit is contained in:
EvilMuffinHa 2021-09-12 21:41:09 -04:00
parent 9547d894ea
commit de057d4039

View File

@ -6,5 +6,5 @@ RUN cargo build --release
FROM ubuntu:20.04 AS release FROM ubuntu:20.04 AS release
WORKDIR /root WORKDIR /root
COPY --from=build /build/target/release/cms ./cms COPY --from=build /build/target/release/cms ./cms
CMD [ "./cms" ] CMD [ "./cms", "-r" ]