minor improvements
This commit is contained in:
parent
f949c116db
commit
db0c9ae3fb
6 changed files with 40 additions and 25 deletions
|
|
@ -1,15 +1,19 @@
|
|||
FROM --platform=linux/amd64 node:19 as build
|
||||
FROM --platform=linux/amd64 node:19-buster-slim as build
|
||||
WORKDIR /app
|
||||
|
||||
COPY package.json package-lock.json .
|
||||
RUN npm i
|
||||
|
||||
COPY src/ src/
|
||||
COPY prisma/ prisma/
|
||||
COPY prisma/schema.prisma prisma/
|
||||
COPY tsconfig.json .
|
||||
|
||||
RUN apt-get update -y && apt-get install -y openssl
|
||||
|
||||
RUN npm run build
|
||||
|
||||
RUN npx prisma generate
|
||||
RUN npx prisma migrate deploy
|
||||
|
||||
ENTRYPOINT [ "node", "dist/index.js" ]
|
||||
CMD ["start"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue