This commit is contained in:
syui 2024-10-27 12:32:32 +09:00
parent b5eea5fbee
commit fe22e77478
Signed by: syui
GPG Key ID: 5417CFEBAD92DF56
3 changed files with 38 additions and 0 deletions

View File

@ -0,0 +1,13 @@
PRIVATE_JWK=`pnpm exec tsx ./scripts/generate-jwk.mts`
PUBLIC_JWK=`pnpm exec tsx ./scripts/generate-jwk.mts`
TURSO_CONNECTION_URL=libsql://xxx.turso.io
TURSO_AUTH_TOKEN=`turso auth`
DRAINPIPE_CONSUMER_SECRET=`openssl ecparam --name secp256k1 --genkey --noout --outform DER | tail --bytes=+8 | head --bytes=32 | xxd --plain --cols 32`
VERCEL_PROJECT_PRODUCTION_URL=example.com
VERCEL_BRANCH_URL=example.com
#DRAINPIPE_CONSUMER_SECRET=secret
#TURSO_CONNECTION_URL=libsql://turso.dev.unravel.fyi
#PLC_DIRECTORY_URL=https://plc.dev.unravel.fyi

View File

@ -0,0 +1,17 @@
FROM node:20
RUN npm install -g pnpm
WORKDIR /app
RUN git clone https://github.com/likeandscribe/frontpage
WORKDIR /app/frontpage
RUN pnpm i
RUN pnpm exec turbo run --affected type-check
WORKDIR /app/frontpage/packages/frontpage
COPY ./.env.local ./.env.local
COPY ./app ./app
COPY ./lib ./lib
RUN pnpm run db:generate
RUN pnpm run db:migrate
RUN pnpm run build
CMD [ "pnpm", "run", "start"]

View File

@ -0,0 +1,8 @@
services:
frontpage:
build:
context: .
ports:
- "3000:3000"
environment:
- WATCHPACK_POLLING=true