mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-10-04 20:43:11 +00:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 19789f15a9 | |||
| 1d71fdaa6a |
+25
@@ -0,0 +1,25 @@
|
|||||||
|
# Use the official Node.js image as the base image
|
||||||
|
FROM imbios/bun-node:latest
|
||||||
|
|
||||||
|
# Set the working directory inside the container
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
# Copy the package.json and bun.lockb files to the working directory
|
||||||
|
COPY . .
|
||||||
|
|
||||||
|
# Install the app dependencies
|
||||||
|
RUN bun install --frozen-lockfile
|
||||||
|
|
||||||
|
# Next.js collects completely anonymous telemetry data about general usage.
|
||||||
|
# Learn more here: https://nextjs.org/telemetry
|
||||||
|
# Disable telemetry during the build
|
||||||
|
ENV NEXT_TELEMETRY_DISABLED 1
|
||||||
|
RUN bun run build
|
||||||
|
|
||||||
|
# Expose the port on which the app will run
|
||||||
|
EXPOSE 3000
|
||||||
|
|
||||||
|
# Start the app
|
||||||
|
ENV PORT 3000
|
||||||
|
ENV HOSTNAME "0.0.0.0"
|
||||||
|
CMD ["bun", "run", "start"]
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -o errexit
|
||||||
|
set -o pipefail
|
||||||
|
|
||||||
|
gcloud run deploy gitbook-open-test --source=. --project=getsquad-dev-samy --region=us-central1 --allow-unauthenticated
|
||||||
+2
-1
@@ -27,7 +27,8 @@
|
|||||||
"release": "turbo run release && changeset publish",
|
"release": "turbo run release && changeset publish",
|
||||||
"release:preview": "turbo run release:preview",
|
"release:preview": "turbo run release:preview",
|
||||||
"download:env": "op read op://gitbook-x-dev/gitbook-open/.env.local >> .env.local",
|
"download:env": "op read op://gitbook-x-dev/gitbook-open/.env.local >> .env.local",
|
||||||
"clean": "turbo run clean"
|
"clean": "turbo run clean",
|
||||||
|
"start": "cd packages/gitbook && bun run start"
|
||||||
},
|
},
|
||||||
"workspaces": [
|
"workspaces": [
|
||||||
"packages/*"
|
"packages/*"
|
||||||
|
|||||||
@@ -2,6 +2,8 @@ const { withSentryConfig } = require('@sentry/nextjs');
|
|||||||
|
|
||||||
module.exports = withSentryConfig(
|
module.exports = withSentryConfig(
|
||||||
{
|
{
|
||||||
|
output: 'standalone',
|
||||||
|
|
||||||
env: {
|
env: {
|
||||||
BUILD_VERSION: (process.env.GITHUB_SHA ?? '').slice(0, 7),
|
BUILD_VERSION: (process.env.GITHUB_SHA ?? '').slice(0, 7),
|
||||||
SENTRY_DSN: process.env.SENTRY_DSN ?? '',
|
SENTRY_DSN: process.env.SENTRY_DSN ?? '',
|
||||||
|
|||||||
Reference in New Issue
Block a user