We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e285ee6 + bfed7cc commit 01d93bfCopy full SHA for 01d93bf
1 file changed
web/Dockerfile.ci
@@ -1,4 +1,13 @@
1
-FROM public.ecr.aws/docker/library/python:3.12-slim
+# Build stage for React app
2
+FROM node:22-alpine AS react-builder
3
+WORKDIR /build/voice-interview-react
4
+COPY ./web/voice-interview-react/package*.json ./
5
+RUN npm ci
6
+COPY ./web/voice-interview-react/ ./
7
+RUN npm run build
8
+
9
+# Final stage
10
+FROM public.ecr.aws/docker/library/python:3.13-slim
11
12
WORKDIR /app
13
RUN apt-get update && apt-get install -y \
@@ -17,6 +26,9 @@ ENV FLASK_DEBUG=0
17
26
COPY ./shared/ ./shared/
18
27
COPY ./web/ ./web/
19
28
29
+# Copy compiled React files from build stage
30
+COPY --from=react-builder /build/static/js/voice-interface.js* ./web/static/js/
31
20
32
WORKDIR /app/web
21
33
EXPOSE 8080
22
34
CMD ["gunicorn", \
0 commit comments