diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 551fe0a..80f98a1 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -35,6 +35,6 @@ jobs: push: true tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} - platforms: linux/amd64,linux/arm64 + platforms: linux/amd64,linux/arm64/v8 cache-from: type=gha cache-to: type=gha,mode=max diff --git a/Dockerfile b/Dockerfile index 0d51997..b64557a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -25,15 +25,13 @@ RUN apk --no-cache add tini WORKDIR /garden-snail -RUN chown -R node:node . -COPY --chown=node:node package.json pnpm-lock.yaml ./ +COPY package.json pnpm-lock.yaml ./ # with NODE_ENV=production pnpm will not install devDependencies ENV NODE_ENV=production RUN pnpm install --frozen-lockfile -COPY --from=builder --chown=node:node /garden-snail/dist ./dist +COPY --from=builder /garden-snail/dist ./dist -USER node EXPOSE 3000 ENTRYPOINT ["/sbin/tini", "node", "dist/main"]