Skip to content

Commit

Permalink
Merge pull request #1 from brenoma/feature/docker
Browse files Browse the repository at this point in the history
Container do docker para subir o nest
  • Loading branch information
brenoma authored Nov 2, 2021
2 parents 5364bd5 + 7bb75da commit 872554b
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 9,022 deletions.
4 changes: 4 additions & 0 deletions .docker/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash

npm install
npm start
9 changes: 9 additions & 0 deletions Dockerfile
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
12 changes: 12 additions & 0 deletions docker-compose.yml
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
Loading

0 comments on commit 872554b

Please sign in to comment.