-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from brenoma/feature/docker
Container do docker para subir o nest
- Loading branch information
Showing
4 changed files
with
39 additions
and
9,022 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/bash | ||
|
||
npm install | ||
npm start |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
FROM node:12.14.0-alpine3.11 | ||
|
||
RUN apk add --no-cache bash | ||
|
||
RUN npm install -g @nestjs/[email protected] | ||
|
||
USER node | ||
|
||
WORKDIR /home/node/app |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
version: '3' | ||
|
||
services: | ||
|
||
app: | ||
build: . | ||
entrypoint: ./.docker/entrypoint.sh | ||
container_name: dongo-api | ||
ports: | ||
- 3000:3000 | ||
volumes: | ||
- .:/home/node/app |
Oops, something went wrong.