Fix incorrect apt-get install block in Dockerfile (#28112)

pull/2532/head
Michael Stanclift 2023-11-28 14:44:04 -06:00 committed by GitHub
parent 6b46bf9953
commit 7a3b41eb54
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 23 deletions

View File

@ -177,29 +177,7 @@ FROM build as yarn
ARG TARGETPLATFORM ARG TARGETPLATFORM
# Copy Node package configuration files into working directory # Copy Node package configuration files into working directory
RUN apt-get update && \ COPY package.json yarn.lock .yarnrc.yml /opt/mastodon/
apt-get -yq dist-upgrade && \
apt-get install -y --no-install-recommends build-essential \
git \
libicu-dev \
libidn-dev \
libpq-dev \
libjemalloc-dev \
zlib1g-dev \
libgdbm-dev \
libgmp-dev \
libssl-dev \
libyaml-dev \
ca-certificates \
libreadline8 \
python3 \
shared-mime-info && \
bundle config set --local deployment 'true' && \
bundle config set --local without 'development test' && \
bundle config set silence_root_warning true && \
corepack enable
COPY Gemfile* package.json yarn.lock .yarnrc.yml /opt/mastodon/
COPY streaming/package.json /opt/mastodon/streaming/ COPY streaming/package.json /opt/mastodon/streaming/
COPY .yarn /opt/mastodon/.yarn COPY .yarn /opt/mastodon/.yarn