fix: bin name in docker container
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Aravinth Manivannan 2022-08-17 19:36:48 +05:30
parent 5dd4866b29
commit c00cf3d8f1
Signed by: realaravinth
GPG key ID: AD9F0F08E855ED88

View file

@ -19,12 +19,12 @@ RUN cargo --version
#RUN make cache-bust
RUN cargo build --release
FROM debian:bullseye as rwhool
LABEL org.opencontainers.image.source https://github.com/realaravinth/rwhool
RUN useradd -ms /bin/bash -u 1001 rwhool
WORKDIR /home/rwhool
COPY --from=rust /src/target/release/rwhool /usr/local/bin/
#COPY --from=rust /src/config/default.toml /etc/rwhool/config.toml
RUN mkdir /var/lib/rwhool && chown rwhool:rwhool /var/lib/rwhool
USER rwhool
CMD [ "/usr/local/bin/rwhool" ]
FROM debian:bullseye as rwhook
LABEL org.opencontainers.image.source https://git.batsense.net/realaravinth/rwhook
RUN useradd -ms /bin/bash -u 1001 rwhook
WORKDIR /home/rwhook
COPY --from=rust /src/target/release/rwhook /usr/local/bin/
#COPY --from=rust /src/config/default.toml /etc/rwhook/config.toml
RUN mkdir /var/lib/rwhook && chown rwhook:rwhook /var/lib/rwhook
USER rwhook
CMD [ "/usr/local/bin/rwhook" ]