Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suporte a Docker para desenvolvimento local #43

Merged
merged 5 commits into from
Sep 14, 2022
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
npm-debug.log
17 changes: 17 additions & 0 deletions Dockerfile.dev
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Specify the parent image from which we build
FROM node:latest
IvoPereira marked this conversation as resolved.
Show resolved Hide resolved

# Set the working directory
RUN mkdir -p /usr/src/welcome_bot
WORKDIR /usr/src/welcome_bot

# Install app dependencies
COPY package*.json ./

RUN npm install
RUN npm install -g nodemon

COPY . .

# Run the application
CMD [ "npm", "run","start.dev" ]
IvoPereira marked this conversation as resolved.
Show resolved Hide resolved
10 changes: 10 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: '3'

services:
app:
build:
context: .
dockerfile: Dockerfile.dev
volumes:
- ./:/usr/src/welcome_bot
IvoPereira marked this conversation as resolved.
Show resolved Hide resolved
- /usr/src/welcome_bot/node_modules
Loading