Skip to content

Commit 75c90a4

Browse files
committed
fix: Add build for staff dashboard
The staff dashboard wasn't getting built into the Docker image so it is currently broken in Kubernetes environments. This adds the missing steps to the build.
1 parent 0a7401f commit 75c90a4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,11 @@ FROM node:17.9 AS node
6868
COPY --from=code /src /src
6969
WORKDIR /src
7070

71+
ENV NODE_ENV=production
7172
RUN yarn workspace mitx-online-public install --immutable && \
72-
yarn workspace mitx-online-public run build
73+
yarn workspace mitx-online-public run build && \
74+
yarn workspace mitx-online-staff-dashboard install --immutable && \
75+
yarn workspace mitx-online-staff-dashboard run build
7376

7477
FROM code AS django-server
7578

0 commit comments

Comments
 (0)