fix: sharkey dockerfile commit

This commit is contained in:
alina 🌸 2024-11-16 00:54:29 +03:00
parent 857aa2efd8
commit 4688090c1f
Signed by: teidesu
SSH key fingerprint: SHA256:uNeCpw6aTSU4aIObXLvHfLkDa82HWH9EiOj9AXOIRpI

View file

@ -1,9 +1,9 @@
# based on https://activitypub.software/TransFem-org/Sharkey/-/blob/develop/Dockerfile
ARG NODE_VERSION=20.12.2-alpine3.19
ARG COMMIT=c344705d6708fdc725d6122d2b321cb2d01dad4b
FROM node:${NODE_VERSION} as build
RUN apk add git linux-headers build-base patch
ENV PYTHONUNBUFFERED=1
@ -13,6 +13,7 @@ RUN apk add py3-pip py3-setuptools
RUN corepack enable
# begin fetch
ARG COMMIT=c344705d6708fdc725d6122d2b321cb2d01dad4b
RUN git clone https://activitypub.software/TransFem-org/Sharkey.git /sharkey --depth=1 && \
cd /sharkey && \
git fetch --depth=1 origin ${COMMIT} && \
@ -21,6 +22,8 @@ RUN git clone https://activitypub.software/TransFem-org/Sharkey.git /sharkey --d
# end fetch
WORKDIR /sharkey
RUN echo a 1 && git rev-parse HEAD
RUN pnpm config set fetch-retries 5
RUN --mount=type=cache,target=/root/.local/share/pnpm/store,sharing=locked \