diff --git a/Dockerfile b/Dockerfile index f785a79..8a2aef5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"] diff --git a/docker-compose.yml b/docker-compose.yml index 48c767d..856140c 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -6,7 +6,7 @@ services: # image: local/hoc:latest image: registry.gitlab.com/vbrandl/hoc:latest volumes: - - ./repos:/repos - - ./cache:/cache + - ./repos:/home/hoc/repos + - ./cache:/home/hoc/cache ports: - "127.0.0.1:8080:8080"