forked from realaravinth/libmedium
create cache dir in docker container
This commit is contained in:
parent
817c997d4a
commit
96a08fcb3f
1 changed files with 1 additions and 0 deletions
|
@ -12,6 +12,7 @@ RUN cargo build --release
|
|||
FROM debian:bullseye-slim
|
||||
RUN useradd -ms /bin/bash -u 1001 libmedium
|
||||
RUN apt-get update && apt-get install -y ca-certificates
|
||||
RUN mkdir /var/lib/libmedium && chown libmedium /var/lib/libmedium
|
||||
COPY --from=rust /src/target/release/libmedium /usr/local/bin/
|
||||
USER libmedium
|
||||
ENTRYPOINT ["/usr/local/bin/libmedium"]
|
||||
|
|
Loading…
Reference in a new issue