Skip to content

Commit 66028ce

Browse files
committed
build: Update base images in Dockerfile for consistency and performance
1 parent 7007817 commit 66028ce

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

sources/gc-qa-rag-etl/Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
11
# Build stage for frontend
2-
FROM node:latest AS frontend-builder
2+
FROM node:20-slim AS frontend-builder
3+
34
WORKDIR /app
5+
46
# Install pnpm
57
RUN npm install -g pnpm
68

79
# Copy frontend files
810
COPY etlapp-web/package.json etlapp-web/pnpm-lock.yaml ./
911
RUN pnpm install --frozen-lockfile
1012

13+
# Copy the rest of the frontend source code and build it
1114
COPY etlapp-web/ ./
1215
RUN pnpm build
1316

1417
# Final stage
15-
FROM python:3.13
18+
FROM python:3.13-slim
1619
WORKDIR /app
1720

1821
# Install PDM
@@ -36,8 +39,5 @@ COPY --from=frontend-builder /app/dist ./etlapp-web/dist
3639
# Expose the port
3740
EXPOSE 8001
3841

39-
# Set environment variable
40-
ENV GC_QA_RAG_ENV=development
41-
4242
# Run the application
4343
CMD ["pdm", "run", "uvicorn", "etlapp_api.server:app", "--host", "0.0.0.0", "--port", "8001"]

0 commit comments

Comments
 (0)