fix: bin name in docker container
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
5dd4866b29
commit
c00cf3d8f1
1 changed files with 9 additions and 9 deletions
18
Dockerfile
18
Dockerfile
|
@ -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" ]
|
||||
|
|
Reference in a new issue