Skip to content

Containerize the Next.js Frontend #275

@Jeffrey0522

Description

@Jeffrey0522

Containerize Frontend with Docker

  • Name / Title: Containerize the Next.js Frontend
  • Complexity: Medium
  • Task Type: DevOps
  • Description: The Next.js frontend must be containerized for Google Cloud Run using Next.js standalone output tracing optimization.
  • Technical Requirement: Docker, Next.js.
  • Estimated time to deliver: 4 hours
  • Acceptance criteria:
    • next.config.ts is updated to include output: 'standalone'.
    • A valid, multi-stage Dockerfile is placed at the root of the frontend repository.
    • The container runs successfully and serves the UI on the defined port.
  • MUST DOs:
    • Optimize the build to only copy necessary standalone files to the final runner stage.
    • Expose default Cloud Run expectations (port 8080/3000) inside the Dockerfile via ENV PORT.
  • References:
    • Repo: skillcert-frontend
    • Files: Dockerfile, .dockerignore, next.config.ts

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions