Files
Memento/Dockerfile
2026-01-12 18:23:23 +13:00

15 lines
260 B
Docker

FROM node:lts AS runtime
WORKDIR /app
COPY . .
ENV DATABASE_URL=postgresql://memento:test@localhost:5432/memento
RUN npm install
RUN npx drizzle-kit push
RUN npx astro build
ENV HOST=0.0.0.0
ENV PORT=4321
EXPOSE 4321
CMD ["node", "./dist/server/entry.mjs"]