Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions lighthouse/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,24 @@ RUN npm install

COPY lighthouse/ .

RUN npm run build
RUN npm run build && npm prune --omit=dev

FROM node:20-alpine

WORKDIR /app

COPY --from=builder /app/build ./build
COPY --from=builder /app/node_modules ./node_modules
COPY lighthouse/package.json ./package.json
COPY database/ /database/

RUN npm install --omit=dev

RUN mkdir -p /app/data

EXPOSE 3000

ENV NODE_ENV=production
ENV PORT=3000
ENV ORIGIN=http://localhost:3000
ENV DATABASE_PATH=/app/data/lighthouse.db

CMD ["node", "build"]