fix: useradd before anything else
This commit is contained in:
parent
e1793f9c6f
commit
4d4d4e2a29
@ -12,9 +12,9 @@ ARG APP="http://app.com/download"
|
|||||||
RUN curl -L "$APP" | tar xz --strip-components=1
|
RUN curl -L "$APP" | tar xz --strip-components=1
|
||||||
|
|
||||||
FROM base
|
FROM base
|
||||||
|
RUN useradd -m app
|
||||||
COPY --from=build /app/ .
|
COPY --from=build /app/ .
|
||||||
COPY entrypoint.sh /usr/local/bin/
|
COPY entrypoint.sh /usr/local/bin/
|
||||||
RUN useradd -m app
|
|
||||||
VOLUME /config/
|
VOLUME /config/
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
ENTRYPOINT ["entrypoint.sh"]
|
ENTRYPOINT ["entrypoint.sh"]
|
||||||
|
@ -22,10 +22,10 @@ RUN curl -LO "$URL" \
|
|||||||
&& rm bazarr.zip
|
&& rm bazarr.zip
|
||||||
|
|
||||||
FROM base
|
FROM base
|
||||||
|
RUN useradd -m app
|
||||||
COPY --from=build /app/ .
|
COPY --from=build /app/ .
|
||||||
COPY --from=build "$VIRTUAL_ENV" "$VIRTUAL_ENV"
|
COPY --from=build "$VIRTUAL_ENV" "$VIRTUAL_ENV"
|
||||||
COPY entrypoint.sh /usr/local/bin/
|
COPY entrypoint.sh /usr/local/bin/
|
||||||
RUN useradd -m app
|
|
||||||
VOLUME /config/
|
VOLUME /config/
|
||||||
EXPOSE 6767
|
EXPOSE 6767
|
||||||
ENTRYPOINT ["entrypoint.sh"]
|
ENTRYPOINT ["entrypoint.sh"]
|
||||||
|
@ -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
|
RUN curl -L "$LIDARR" | tar xz --strip-components=1
|
||||||
|
|
||||||
FROM base
|
FROM base
|
||||||
|
RUN useradd -m app
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
&& apt-get install -y --no-install-recommends \
|
&& apt-get install -y --no-install-recommends \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
@ -21,7 +22,6 @@ RUN apt-get update \
|
|||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
COPY --from=build /app/ .
|
COPY --from=build /app/ .
|
||||||
COPY entrypoint.sh /usr/local/bin/
|
COPY entrypoint.sh /usr/local/bin/
|
||||||
RUN useradd -m app
|
|
||||||
VOLUME /config/
|
VOLUME /config/
|
||||||
EXPOSE 8686
|
EXPOSE 8686
|
||||||
ENTRYPOINT ["entrypoint.sh"]
|
ENTRYPOINT ["entrypoint.sh"]
|
||||||
|
@ -13,10 +13,9 @@ ARG MONERO='https://downloads.getmonero.org/cli/linux64'
|
|||||||
RUN curl -L "$MONERO" | tar xj --strip-components=1
|
RUN curl -L "$MONERO" | tar xj --strip-components=1
|
||||||
|
|
||||||
FROM base
|
FROM base
|
||||||
COPY --from=build /app/ .
|
|
||||||
RUN useradd -m app
|
RUN useradd -m app
|
||||||
RUN mkdir -p /home/app/.bitmonero/ /wallet/ \
|
COPY --from=build /app/ .
|
||||||
&& chown -R app:app /home/app/ /wallet/
|
RUN mkdir -p /home/app/.bitmonero/ && chown -R app:app /home/app/
|
||||||
VOLUME /home/app/.bitmonero/ /wallet/
|
VOLUME /home/app/.bitmonero/ /wallet/
|
||||||
EXPOSE 18080 18081
|
EXPOSE 18080 18081
|
||||||
USER app
|
USER app
|
||||||
|
@ -7,9 +7,7 @@ services:
|
|||||||
- "18080:18080"
|
- "18080:18080"
|
||||||
- "18081:18081"
|
- "18081:18081"
|
||||||
volumes:
|
volumes:
|
||||||
- wallet:/wallet/
|
|
||||||
- blocks:/home/app/.bitmonero/
|
- blocks:/home/app/.bitmonero/
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
wallet:
|
|
||||||
blocks:
|
blocks:
|
||||||
|
@ -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
|
RUN curl -L "$PROWLARR" | tar xz --strip-components=1
|
||||||
|
|
||||||
FROM base
|
FROM base
|
||||||
|
RUN useradd -m app
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
&& apt-get install -y --no-install-recommends \
|
&& apt-get install -y --no-install-recommends \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
@ -19,7 +20,6 @@ RUN apt-get update \
|
|||||||
sqlite3 \
|
sqlite3 \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
COPY --from=build /app/ .
|
COPY --from=build /app/ .
|
||||||
RUN useradd -m app
|
|
||||||
VOLUME /config/
|
VOLUME /config/
|
||||||
EXPOSE 9696
|
EXPOSE 9696
|
||||||
CMD ["./Prowlarr", "-nobrowser", "-data=/config"]
|
CMD ["./Prowlarr", "-nobrowser", "-data=/config"]
|
||||||
|
@ -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
|
RUN curl -L "$RADARR" | tar xz --strip-components=1
|
||||||
|
|
||||||
FROM base
|
FROM base
|
||||||
|
RUN useradd -m app
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
&& apt-get install -y --no-install-recommends \
|
&& apt-get install -y --no-install-recommends \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
@ -20,7 +21,6 @@ RUN apt-get update \
|
|||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
COPY --from=build /app/ .
|
COPY --from=build /app/ .
|
||||||
COPY entrypoint.sh /usr/local/bin/
|
COPY entrypoint.sh /usr/local/bin/
|
||||||
RUN useradd -m app
|
|
||||||
VOLUME /config/
|
VOLUME /config/
|
||||||
EXPOSE 7878
|
EXPOSE 7878
|
||||||
ENTRYPOINT ["entrypoint.sh"]
|
ENTRYPOINT ["entrypoint.sh"]
|
||||||
|
@ -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
|
RUN curl -L "$READARR" | tar xz --strip-components=1
|
||||||
|
|
||||||
FROM base
|
FROM base
|
||||||
|
RUN useradd -m app
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
&& apt-get install -y --no-install-recommends \
|
&& apt-get install -y --no-install-recommends \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
@ -20,7 +21,6 @@ RUN apt-get update \
|
|||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
COPY --from=build /app/ .
|
COPY --from=build /app/ .
|
||||||
COPY entrypoint.sh /usr/local/bin/
|
COPY entrypoint.sh /usr/local/bin/
|
||||||
RUN useradd -m app
|
|
||||||
VOLUME /config/
|
VOLUME /config/
|
||||||
EXPOSE 8787
|
EXPOSE 8787
|
||||||
ENTRYPOINT ["entrypoint.sh"]
|
ENTRYPOINT ["entrypoint.sh"]
|
||||||
|
@ -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
|
RUN curl -L "$SONARR" | tar xz --strip-components=1
|
||||||
|
|
||||||
FROM base
|
FROM base
|
||||||
|
RUN useradd -m app
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
&& apt-get install -y --no-install-recommends \
|
&& apt-get install -y --no-install-recommends \
|
||||||
libicu72 \
|
libicu72 \
|
||||||
@ -20,7 +21,6 @@ RUN apt-get update \
|
|||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
COPY --from=build /app/ .
|
COPY --from=build /app/ .
|
||||||
COPY entrypoint.sh /usr/local/bin/
|
COPY entrypoint.sh /usr/local/bin/
|
||||||
RUN useradd -m app
|
|
||||||
VOLUME /config/
|
VOLUME /config/
|
||||||
EXPOSE 8989
|
EXPOSE 8989
|
||||||
ENTRYPOINT ["entrypoint.sh"]
|
ENTRYPOINT ["entrypoint.sh"]
|
||||||
|
Loading…
Reference in New Issue
Block a user