mirror of
https://github.com/abraunegg/onedrive
synced 2026-03-14 14:35:46 +01:00
Update Debian Dockerfile to use upstream gosu (#3402)
* Update Debian Dockerfile to use upstream gosu version rather than Debian provided version
This commit is contained in:
parent
1321ae6306
commit
298e8896b3
1 changed files with 8 additions and 1 deletions
|
|
@ -30,7 +30,7 @@ RUN apt-get clean \
|
|||
&& echo "deb http://deb.debian.org/debian bookworm-backports main" > /etc/apt/sources.list.d/debian-12-backports.list \
|
||||
&& apt-get update \
|
||||
&& apt-get upgrade -y \
|
||||
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends gosu libsqlite3-0 ca-certificates libphobos2-ldc-shared100 libdbus-1-3 \
|
||||
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends libsqlite3-0 ca-certificates libphobos2-ldc-shared100 libdbus-1-3 \
|
||||
# Install|update curl and libcurl4 from backports
|
||||
&& apt-get install -t bookworm-backports -y curl libcurl4 \
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
|
|
@ -38,6 +38,13 @@ RUN apt-get clean \
|
|||
&& /usr/bin/c_rehash \
|
||||
&& mkdir -p /onedrive/conf /onedrive/data
|
||||
|
||||
# Install gosu v1.17 from trusted upstream source (built against Go 1.18.2)
|
||||
RUN set -eux; \
|
||||
arch="$(dpkg --print-architecture)"; \
|
||||
curl -fsSL -o /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/1.17/gosu-${arch}"; \
|
||||
chmod +x /usr/local/bin/gosu; \
|
||||
gosu nobody true
|
||||
|
||||
COPY --from=builder-onedrive /usr/local/bin/onedrive /usr/local/bin/
|
||||
|
||||
COPY contrib/docker/entrypoint.sh /
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue