Skip to content

Commit f2ba475

Browse files
Merge pull request #3 from CodeMaster4711/fix/api
fix: api endpoint
2 parents 52bc402 + 20dc3d9 commit f2ba475

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lighthouse/Dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,24 @@ RUN npm install
1010

1111
COPY lighthouse/ .
1212

13-
RUN npm run build
13+
RUN npm run build && npm prune --omit=dev
1414

1515
FROM node:20-alpine
1616

1717
WORKDIR /app
1818

1919
COPY --from=builder /app/build ./build
20+
COPY --from=builder /app/node_modules ./node_modules
2021
COPY lighthouse/package.json ./package.json
2122
COPY database/ /database/
2223

23-
RUN npm install --omit=dev
24-
2524
RUN mkdir -p /app/data
2625

2726
EXPOSE 3000
2827

2928
ENV NODE_ENV=production
3029
ENV PORT=3000
30+
ENV ORIGIN=http://localhost:3000
31+
ENV DATABASE_PATH=/app/data/lighthouse.db
3132

3233
CMD ["node", "build"]

0 commit comments

Comments
 (0)