Remove custom options from docker; add binary to path

This commit is contained in:
Vikas
2024-06-30 14:39:17 +05:30
parent 231328a6f9
commit ec38382ff7

View File

@@ -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"]