Enviar arquivos para "/"
This commit is contained in:
3
.dockerignore
Normal file
3
.dockerignore
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
node_modules
|
||||||
|
.next
|
||||||
|
.env
|
||||||
18
dockerfile
Normal file
18
dockerfile
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
FROM node:18-alpine
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
# Copiar arquivos de configuração
|
||||||
|
COPY package.json package-lock.json ./
|
||||||
|
COPY . .
|
||||||
|
|
||||||
|
# Instalar dependências
|
||||||
|
RUN npm install
|
||||||
|
RUN npx prisma generate
|
||||||
|
|
||||||
|
# Build da aplicação
|
||||||
|
RUN npm run build
|
||||||
|
|
||||||
|
EXPOSE 3000
|
||||||
|
|
||||||
|
CMD ["npm", "start"]
|
||||||
Reference in New Issue
Block a user