Something went wrong. Try again.
A build your own ATProto adventure, OAuth already figured out for you. forked from pds.dad/atproto-sveltekit-template
Something went wrong. Try again.
12345678910111213141516171819202122232425#Had problems with pnpm and sqlite, so just using npm. bit longer but gets the job done.
FROM node:24-slim AS builderWORKDIR /app
COPY package.json ./RUN npm install
COPY . .#Needs a place holder during buildENV DATABASE_URL="placeholder"RUN npm run build
FROM node:24-alpine3.22 AS web-appWORKDIR /app
COPY --from=builder /app/build /app/distCOPY --from=builder /app/package.json /app/COPY ./drizzle /app/drizzleENV MIGRATIONS_FOLDER="/app/drizzle"
RUN npm install --prod
#This is saying run what's in the dist folderCMD ["node", "/app/dist/index.js"]