Files
Memento/Dockerfile
2026-01-13 10:27:33 +13:00

18 lines
308 B
Docker

FROM node:lts AS runtime
WORKDIR /app
VOLUME [ "/data" ]
COPY . .
ENV DATABASE_URL=postgresql://memento:test@localhost:5432/memento
ENV UPLOAD_DIR=/data/images
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"]