Skip to content

Commit

Permalink
🐛 (#170) Fazendo alteracoes no dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
julisous committed Oct 26, 2023
1 parent a314e04 commit b571f08
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
FROM node:17-alpine AS development
FROM node:16-alpine AS development
ENV NODE_ENV development

# Diretorio
# Directory
WORKDIR /app
# Instalacao das dependencias
COPY package.json .
COPY yarn.lock .
RUN yarn install
# Copia arquivos do src
COPY . .
RUN yarn build
# Expoe a porta
EXPOSE 3000
# Inicia o programa
Expand Down
4 changes: 2 additions & 2 deletions docker-compose.dev.yml → docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
version: '3.8'

service:
services:
app:
container_name: app-front
image: app-front
build:
context:
context: .
target: development
volumes:
- ./src:/app/src
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
"test": "react-scripts test --watchAll=false --coverage",
"test:watch": "react-scripts test",
"eject": "react-scripts eject",
"lint": "eslint --ext .{tjs,jsx}"
"lint": "eslint --ext .{tjs,jsx}",
"dev": "docker-compose -d docker-compose.yml up"
},
"eslintConfig": {
"extends": [
Expand Down

0 comments on commit b571f08

Please sign in to comment.