Skip to content

chore: add docker settings#9

Merged
hiwllc merged 2 commits intomasterfrom
add-docker
Sep 16, 2018
Merged

chore: add docker settings#9
hiwllc merged 2 commits intomasterfrom
add-docker

Conversation

@hiwllc
Copy link
Copy Markdown
Member

@hiwllc hiwllc commented Sep 13, 2018

Descrição

Este PR adiciona o Dockerfile para produção e docker-compose para desenvolvimento.

Resolve #1

@hiwllc hiwllc added enhancement New feature or request api review labels Sep 13, 2018
@hiwllc hiwllc self-assigned this Sep 13, 2018
@hiwllc hiwllc requested a review from a team September 13, 2018 05:18
@hiwllc hiwllc force-pushed the add-docker branch 2 times, most recently from 03abe72 to e8ac828 Compare September 13, 2018 05:23
Comment thread Dockerfile Outdated
FROM node:8.12.0-alpine

ARG PRODUCTION
ENV PRODUCTION ${PRODUCTION:-true}
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@UselessDev da pra usar stages no dockerfile, assim não precisa desse ARG e ENV para saber se é production ou não, um exemplo disso aqui.

Comment thread Dockerfile Outdated

COPY ./.eslintrc.js /api/.eslintrc.js
COPY ./package.json /api/package.json
COPY ./server.js /api/server.js
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@UselessDev por que o eslintrc.js e server.js são copiados mas não são usados no Dockerfile?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Não tenho certeza 🤔 técnicamente então eu não preciso copiar nenhum arquivo no Dockerfile se ele não for usado?

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

se não for usado no Dockerfile não

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No caso do package.json faz sentido deixar ele no Dockerfile?

@hiwllc hiwllc mentioned this pull request Sep 16, 2018
@hiwllc hiwllc force-pushed the add-docker branch 2 times, most recently from 43a849a to 9fe11da Compare September 16, 2018 21:08
Copy link
Copy Markdown

@flyingluscas flyingluscas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💯

@hiwllc hiwllc merged commit 180602e into master Sep 16, 2018
@hiwllc hiwllc deleted the add-docker branch September 16, 2018 21:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api enhancement New feature or request review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants