21 lines
267 B
Docker
21 lines
267 B
Docker
FROM ubuntu:22.04
|
|
WORKDIR /app
|
|
|
|
RUN apt-get update
|
|
RUN apt-get install nodejs npm curl -y
|
|
|
|
RUN npm install n -g
|
|
|
|
RUN n install 18
|
|
|
|
COPY package*.json ./
|
|
|
|
RUN npm install
|
|
|
|
COPY . .
|
|
|
|
RUN npm run prisma:generate
|
|
|
|
RUN npm run build
|
|
|
|
CMD npm run prisma:deploy && npm start |