From ec38382ff7393ea4c1e240df54f777376b64702c Mon Sep 17 00:00:00 2001 From: Vikas Date: Sun, 30 Jun 2024 14:39:17 +0530 Subject: [PATCH] Remove custom options from docker; add binary to path --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 980d108..64c9727 100644 --- a/Dockerfile +++ b/Dockerfile @@ -25,11 +25,13 @@ RUN apk add --no-cache tini ca-certificates \ WORKDIR $APP_DIR COPY --from=builder /out/pastepass . +ENV PATH=$APP_DIR:$PATH RUN mkdir -p $DATA_DIR && chown $UID:$GID $DATA_DIR +WORKDIR $DATA_DIR USER $USER EXPOSE 8008 ENTRYPOINT ["/sbin/tini", "--"] -CMD ["./pastepass", "-db-path", "/data/pastepass.db"] +CMD ["pastepass"]