-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Fabio Brasileiro
authored and
Fabio Brasileiro
committed
Nov 18, 2024
1 parent
54866cd
commit c970f40
Showing
2 changed files
with
0 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,8 @@ | ||
# Use a imagem base do Node.js | ||
FROM node:22 | ||
|
||
# Defina o diretório de trabalho no container | ||
WORKDIR /usr/src/app | ||
|
||
# Copie o package.json e package-lock.json para o diretório de trabalho | ||
COPY package*.json ./ | ||
|
||
# Instale as dependências da aplicação | ||
RUN npm install | ||
|
||
# Copie o restante do código da aplicação | ||
COPY . . | ||
|
||
# Gere o Prisma Client e compile o código TypeScript | ||
RUN npx prisma generate && npm run build | ||
|
||
# Exponha a porta que a aplicação irá usar | ||
EXPOSE 3000 | ||
|
||
# Defina o comando para iniciar a aplicação | ||
CMD ["node", "build/server.cjs"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -135,7 +135,6 @@ enum ProposalStatus { | |
REJECTED | ||
} | ||
|
||
|
||
enum UserRole { | ||
PENDING | ||
USER | ||
|