diff --git a/apps/registration-admin/Dockerfile b/apps/registration-admin/Dockerfile index 62cb061..22e7139 100644 --- a/apps/registration-admin/Dockerfile +++ b/apps/registration-admin/Dockerfile @@ -31,5 +31,14 @@ RUN pnpm run build --filter=registration-admin... # COPY --from=builder ../apps/registration-admin/dist /app/register-build/ # RUN pnpm install typescript -EXPOSE 3004 -CMD ["pnpm", "run", "dev"] \ No newline at end of file +# Use a lightweight web server to serve the static files +FROM nginx:stable-alpine + +# Copy the built frontend app to the web server directory +COPY --from=builder /app/apps/registration-admin/dist /usr/share/nginx/html + +# Expose the port the app runs on +EXPOSE 5173 + +# Start the web server +CMD ["nginx", "-g", "daemon off;"] \ No newline at end of file diff --git a/apps/web-admin/Dockerfile b/apps/web-admin/Dockerfile index edb87d3..c0d4efa 100644 --- a/apps/web-admin/Dockerfile +++ b/apps/web-admin/Dockerfile @@ -21,7 +21,7 @@ ENV PYTHON=/usr/bin/python3 RUN pnpm install -RUN pnpm run build --filter=web-admin... +RUN pnpm turbo run build --filter=web-admin... EXPOSE 3000 CMD ["pnpm", "run", "dev"] \ No newline at end of file diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index e9b0dad..31e061c 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -1,3 +1,4 @@ packages: - 'apps/*' - 'packages/*' + - 'apps/web-admin/*'