mirror of
https://github.com/romanz/electrs.git
synced 2025-02-23 22:56:55 +01:00
Avoid including build artifacts in the final docker image
This commit is contained in:
parent
af2038463d
commit
6e537dd299
1 changed files with 2 additions and 1 deletions
|
@ -25,7 +25,8 @@ RUN apt-get update \
|
||||||
RUN groupadd -r user \
|
RUN groupadd -r user \
|
||||||
&& adduser --disabled-login --system --shell /bin/false --uid 1000 --ingroup user user
|
&& adduser --disabled-login --system --shell /bin/false --uid 1000 --ingroup user user
|
||||||
|
|
||||||
COPY --from=builder --chown=user:user /build/target/release .
|
COPY --from=builder --chown=user:user \
|
||||||
|
/build/target/release/electrs .
|
||||||
|
|
||||||
USER user
|
USER user
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue