Don't run as root in the container
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Valentin Brandl
2019-05-28 21:46:47 +02:00
parent d9faf25648
commit a944e8b149
2 changed files with 7 additions and 4 deletions

View File

@ -29,10 +29,13 @@ FROM alpine:latest
RUN apk --no-cache add --update git
RUN useradd --create-home hoc
WORKDIR /home/hoc
# once we don't need a git binary anymore, this should be enough
# FROM scratch
# COPY --from=linuxkit/ca-certificates:v0.7 / /
COPY --from=builder /home/rust/src/target/x86_64-unknown-linux-musl/release/hoc /hoc
COPY --from=builder /home/rust/src/target/x86_64-unknown-linux-musl/release/hoc .
ENTRYPOINT ["/hoc"]
ENTRYPOINT ["/home/hoc/hoc"]