Skip to content

Commit

Permalink
changes to registration-admin workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
subru-37 committed Nov 24, 2024
1 parent 751a3ec commit 67ff57a
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
13 changes: 11 additions & 2 deletions apps/registration-admin/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
# 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;"]
2 changes: 1 addition & 1 deletion apps/web-admin/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
1 change: 1 addition & 0 deletions pnpm-workspace.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
packages:
- 'apps/*'
- 'packages/*'
- 'apps/web-admin/*'

0 comments on commit 67ff57a

Please sign in to comment.