34733c121c
Build & Push Docker Images / test-backend (push) Successful in 49s
Build & Push Docker Images / test-frontend (push) Successful in 58s
Build & Push Docker Images / build-backend (push) Failing after 1m7s
Build & Push Docker Images / build-frontend (push) Successful in 1m13s
Build context was ./backend so API/ was never copied into the image. server.js imports ../API/index.js which resolves to /API/index.js at runtime. Expand build context to project root and explicitly copy API/ to /API/. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
10 lines
178 B
Docker
10 lines
178 B
Docker
FROM node:18-alpine
|
|
WORKDIR /app
|
|
COPY backend/package*.json ./
|
|
RUN npm ci --omit=dev
|
|
COPY backend/ .
|
|
COPY API/ /API/
|
|
RUN mkdir -p /app/data
|
|
EXPOSE 3001
|
|
CMD ["node", "server.js"]
|