diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml deleted file mode 100644 index e55ec05..0000000 --- a/.github/workflows/docs.yml +++ /dev/null @@ -1,33 +0,0 @@ -name: Docs - -on: - workflow_dispatch: {} - push: - branches: - - "main" - paths: - - ".github/workflows/docs.yml" - - "docs/*" - -jobs: - build: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: Login to GitHub Container Registry - uses: docker/login-action@v3 - with: - registry: ghcr.io - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} - - - name: Build and push - uses: docker/build-push-action@v5 - with: - context: docs - file: docs/Dockerfile - platforms: linux/amd64 - push: true - tags: ghcr.io/txpipe/boros-docs:${{ github.sha }} diff --git a/docs/.dockerignore b/docs/.dockerignore deleted file mode 100644 index f74c781..0000000 --- a/docs/.dockerignore +++ /dev/null @@ -1,2 +0,0 @@ -.next -node_modules diff --git a/docs/Dockerfile b/docs/Dockerfile deleted file mode 100644 index 2809f68..0000000 --- a/docs/Dockerfile +++ /dev/null @@ -1,28 +0,0 @@ -FROM node:22-alpine AS dependencies-env -RUN npm i -g pnpm -COPY . /app - -FROM dependencies-env AS development-dependencies-env -COPY ./package.json ./pnpm-lock.yaml /app/ -WORKDIR /app -RUN pnpm i --frozen-lockfile - -FROM dependencies-env AS production-dependencies-env -COPY ./package.json ./pnpm-lock.yaml /app/ -WORKDIR /app -RUN pnpm i --prod --frozen-lockfile --ignore-scripts - -FROM dependencies-env AS build-env -COPY ./package.json ./pnpm-lock.yaml /app/ -COPY --from=development-dependencies-env /app/node_modules /app/node_modules -WORKDIR /app -RUN pnpm build - -FROM dependencies-env -COPY ./package.json ./pnpm-lock.yaml /app/ -COPY --from=production-dependencies-env /app/node_modules /app/node_modules -COPY --from=build-env /app/.next /app/.next -COPY --from=build-env /app/public /app/public -WORKDIR /app -EXPOSE 3000 -CMD ["pnpm", "start"] \ No newline at end of file