You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add Dockerfile for server backend deployment to Azure
Add a Dockerfile for deploying the server backend to Azure.
* **Dockerfile**:
- Use `node:20-alpine` as the base image.
- Set the working directory to `/app`.
- Copy `package.json` and `pnpm-lock.yaml` to the working directory.
- Install dependencies using `pnpm install --frozen-lockfile`.
- Copy the rest of the application code to the working directory.
- Build the application using `pnpm nx build server --verbose`.
- Expose port 3000.
- Set the command to run the application using `node dist/apps/server/main.js`.
* **package.json**:
- Add a new script `docker:build` to build the Docker image.
---
For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/DeveloperParana/devmx?shareId=XXXX-XXXX-XXXX-XXXX).
0 commit comments