add bsdextrautils, combined some run stages
This commit is contained in:
parent
83f43f5466
commit
185155167b
1 changed files with 6 additions and 8 deletions
14
Dockerfile
14
Dockerfile
|
@ -2,10 +2,8 @@
|
|||
# adapted from https://github.com/bluesky-social/pds/blob/v0.4.74/Dockerfile
|
||||
################################################################################
|
||||
FROM node:20.11-bookworm-slim AS pds-build
|
||||
RUN npm install -g pnpm
|
||||
|
||||
RUN apt-get update
|
||||
RUN apt-get -y install unzip
|
||||
RUN npm install -g pnpm && apt-get update && apt-get -y install unzip
|
||||
|
||||
# Download and extract the PDS archive
|
||||
WORKDIR /app
|
||||
|
@ -21,8 +19,7 @@ RUN pnpm install --prod=true --frozen-lockfile
|
|||
################################################################################
|
||||
FROM node:20.11-bookworm-slim AS pds-runtime
|
||||
|
||||
RUN apt-get update
|
||||
RUN apt-get install -y \
|
||||
RUN apt-get update && apt-get install -y \
|
||||
dumb-init \
|
||||
ca-certificates \
|
||||
curl \
|
||||
|
@ -31,7 +28,9 @@ RUN apt-get install -y \
|
|||
lsb-release \
|
||||
openssl \
|
||||
sqlite3 \
|
||||
bsdextrautils \
|
||||
xxd
|
||||
# bsdextrautils for `column` command in the accounts script
|
||||
|
||||
WORKDIR /app
|
||||
COPY --from=pds-build /app /app
|
||||
|
@ -65,9 +64,8 @@ ENV PDS_CRAWLERS="https://bsky.network"
|
|||
|
||||
RUN mv pdsadmin.sh /usr/local/bin/pdsadmin && \
|
||||
chmod +x /usr/local/bin/pdsadmin && \
|
||||
mkdir --mode=700 --parent ${PDS_DATADIR}
|
||||
|
||||
RUN rm -rf pds-0.4.74 v0.4.74.zip && \
|
||||
mkdir --mode=700 --parent ${PDS_DATADIR} && \
|
||||
rm -rf pds-0.4.74 v0.4.74.zip && \
|
||||
apt-get clean && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
|
|
Loading…
Reference in a new issue