Commit 181c124
committed
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).1 parent 59453d7 commit 181c124
2 files changed
+25
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
0 commit comments