fix: useradd before anything else

This commit is contained in:
ange 2024-02-28 13:21:54 +01:00
parent e1793f9c6f
commit 4d4d4e2a29
Signed by: ange
GPG Key ID: 9E0C4157BB7BEB1D
9 changed files with 9 additions and 12 deletions

View File

@ -12,9 +12,9 @@ ARG APP="http://app.com/download"
RUN curl -L "$APP" | tar xz --strip-components=1
FROM base
RUN useradd -m app
COPY --from=build /app/ .
COPY entrypoint.sh /usr/local/bin/
RUN useradd -m app
VOLUME /config/
EXPOSE 80
ENTRYPOINT ["entrypoint.sh"]

View File

@ -22,10 +22,10 @@ RUN curl -LO "$URL" \
&& rm bazarr.zip
FROM base
RUN useradd -m app
COPY --from=build /app/ .
COPY --from=build "$VIRTUAL_ENV" "$VIRTUAL_ENV"
COPY entrypoint.sh /usr/local/bin/
RUN useradd -m app
VOLUME /config/
EXPOSE 6767
ENTRYPOINT ["entrypoint.sh"]

View File

@ -12,6 +12,7 @@ ARG LIDARR="http://lidarr.servarr.com/v1/update/master/updatefile?os=linux&runti
RUN curl -L "$LIDARR" | tar xz --strip-components=1
FROM base
RUN useradd -m app
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
ca-certificates \
@ -21,7 +22,6 @@ RUN apt-get update \
&& rm -rf /var/lib/apt/lists/*
COPY --from=build /app/ .
COPY entrypoint.sh /usr/local/bin/
RUN useradd -m app
VOLUME /config/
EXPOSE 8686
ENTRYPOINT ["entrypoint.sh"]

View File

@ -13,10 +13,9 @@ ARG MONERO='https://downloads.getmonero.org/cli/linux64'
RUN curl -L "$MONERO" | tar xj --strip-components=1
FROM base
COPY --from=build /app/ .
RUN useradd -m app
RUN mkdir -p /home/app/.bitmonero/ /wallet/ \
&& chown -R app:app /home/app/ /wallet/
COPY --from=build /app/ .
RUN mkdir -p /home/app/.bitmonero/ && chown -R app:app /home/app/
VOLUME /home/app/.bitmonero/ /wallet/
EXPOSE 18080 18081
USER app

View File

@ -7,9 +7,7 @@ services:
- "18080:18080"
- "18081:18081"
volumes:
- wallet:/wallet/
- blocks:/home/app/.bitmonero/
volumes:
wallet:
blocks:

View File

@ -12,6 +12,7 @@ ARG PROWLARR="http://prowlarr.servarr.com/v1/update/develop/updatefile?os=linux&
RUN curl -L "$PROWLARR" | tar xz --strip-components=1
FROM base
RUN useradd -m app
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
ca-certificates \
@ -19,7 +20,6 @@ RUN apt-get update \
sqlite3 \
&& rm -rf /var/lib/apt/lists/*
COPY --from=build /app/ .
RUN useradd -m app
VOLUME /config/
EXPOSE 9696
CMD ["./Prowlarr", "-nobrowser", "-data=/config"]

View File

@ -12,6 +12,7 @@ ARG RADARR="http://radarr.servarr.com/v1/update/master/updatefile?os=linux&runti
RUN curl -L "$RADARR" | tar xz --strip-components=1
FROM base
RUN useradd -m app
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
ca-certificates \
@ -20,7 +21,6 @@ RUN apt-get update \
&& rm -rf /var/lib/apt/lists/*
COPY --from=build /app/ .
COPY entrypoint.sh /usr/local/bin/
RUN useradd -m app
VOLUME /config/
EXPOSE 7878
ENTRYPOINT ["entrypoint.sh"]

View File

@ -12,6 +12,7 @@ ARG READARR="https://readarr.servarr.com/v1/update/develop/updatefile?os=linux&r
RUN curl -L "$READARR" | tar xz --strip-components=1
FROM base
RUN useradd -m app
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
ca-certificates \
@ -20,7 +21,6 @@ RUN apt-get update \
&& rm -rf /var/lib/apt/lists/*
COPY --from=build /app/ .
COPY entrypoint.sh /usr/local/bin/
RUN useradd -m app
VOLUME /config/
EXPOSE 8787
ENTRYPOINT ["entrypoint.sh"]

View File

@ -12,6 +12,7 @@ ARG SONARR="https://services.sonarr.tv/v1/download/main/latest?version=4&os=linu
RUN curl -L "$SONARR" | tar xz --strip-components=1
FROM base
RUN useradd -m app
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
libicu72 \
@ -20,7 +21,6 @@ RUN apt-get update \
&& rm -rf /var/lib/apt/lists/*
COPY --from=build /app/ .
COPY entrypoint.sh /usr/local/bin/
RUN useradd -m app
VOLUME /config/
EXPOSE 8989
ENTRYPOINT ["entrypoint.sh"]