From 3f65a5bd1ad896d8d6b10fc1042b63d3c6a430a7 Mon Sep 17 00:00:00 2001 From: Natty Date: Wed, 11 Oct 2023 20:09:40 +0000 Subject: [PATCH] Fixed Dockerfile for Podman --- Dockerfile | 32 +++++++++++++++++--------------- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/Dockerfile b/Dockerfile index ee3a30a3c..50e961be9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,21 +18,22 @@ RUN corepack enable WORKDIR /misskey -COPY --link ["pnpm-lock.yaml", "pnpm-workspace.yaml", "package.json", "./"] -COPY --link ["scripts", "./scripts"] -COPY --link ["packages/backend/package.json", "./packages/backend/"] -COPY --link ["packages/frontend/package.json", "./packages/frontend/"] -COPY --link ["packages/sw/package.json", "./packages/sw/"] -COPY --link ["packages/misskey-js/package.json", "./packages/misskey-js/"] -COPY --link ["packages/misskey-reversi/package.json", "./packages/misskey-reversi/"] -COPY --link ["packages/misskey-bubble-game/package.json", "./packages/misskey-bubble-game/"] +COPY ["pnpm-lock.yaml", "pnpm-workspace.yaml", "package.json", "./"] +COPY ["scripts", "./scripts"] +COPY ["packages/backend/package.json", "./packages/backend/"] +COPY ["packages/frontend/package.json", "./packages/frontend/"] +COPY ["packages/sw/package.json", "./packages/sw/"] +COPY ["packages/misskey-js/package.json", "./packages/misskey-js/"] +COPY ["packages/misskey-js/package.json", "./packages/misskey-js/"] +COPY ["packages/misskey-reversi/package.json", "./packages/misskey-reversi/"] +COPY ["packages/misskey-bubble-game/package.json", "./packages/misskey-bubble-game/"] ARG NODE_ENV=production RUN --mount=type=cache,target=/root/.local/share/pnpm/store,sharing=locked \ pnpm i --frozen-lockfile --aggregate-output -COPY --link . ./ +COPY . ./ RUN git submodule update --init RUN pnpm build @@ -50,12 +51,13 @@ RUN corepack enable WORKDIR /misskey -COPY --link ["pnpm-lock.yaml", "pnpm-workspace.yaml", "package.json", "./"] -COPY --link ["scripts", "./scripts"] -COPY --link ["packages/backend/package.json", "./packages/backend/"] -COPY --link ["packages/misskey-js/package.json", "./packages/misskey-js/"] -COPY --link ["packages/misskey-reversi/package.json", "./packages/misskey-reversi/"] -COPY --link ["packages/misskey-bubble-game/package.json", "./packages/misskey-bubble-game/"] +COPY ["pnpm-lock.yaml", "pnpm-workspace.yaml", "package.json", "./"] +COPY ["scripts", "./scripts"] +COPY ["packages/backend/package.json", "./packages/backend/"] +COPY ["packages/misskey-js/package.json", "./packages/misskey-js/"] +COPY ["packages/misskey-reversi/package.json", "./packages/misskey-reversi/"] +COPY ["packages/misskey-bubble-game/package.json", "./packages/misskey-bubble-game/"] + ARG NODE_ENV=production