diff --git a/Dockerfile b/Dockerfile index 714bebb6..16a64268 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,7 @@ FROM node:17-alpine AS development ENV NODE_ENV development # Diretorio -WORKDIR /src +WORKDIR /app # Instalacao das dependencias COPY package.json . COPY yarn.lock . diff --git a/docker-compose.dev.yml b/docker-compose.dev.yml new file mode 100644 index 00000000..ea582d3d --- /dev/null +++ b/docker-compose.dev.yml @@ -0,0 +1,13 @@ +version: '3.8' + +service: + app: + container_name: app-front + image: app-front + build: + context: + target: development + volumes: + - ./src:/app/src + ports: + - 3000:3000