209 похожих чатов

Привет, ребят приложение - апи на Nest.js не получается запустить бэк..на docker-compose

up пишет, что не найден package.json, а на npm run start:dev, что проблемы с AWS SDK

кто нибудь может подсказать, что не так?

13 ответов

6 просмотров

симпатичная. женой мне будешь

Саадат-Косумбаева Автор вопроса

так выглядит Dockerfile

Саадат Косумбаева
так выглядит Dockerfile

не надо nestjs cli ставить глобально

Саадат-Косумбаева Автор вопроса
Илюша 🎂
не надо nestjs cli ставить глобально

убрала -g, нужно же просто перезапустить команду? все еще ругается

Саадат Косумбаева
убрала -g, нужно же просто перезапустить команду? ...

посмотри в интернете нормальные докерфайлы, мне кажется, ты что-то не так делаешь

# Use the official Node.js 18 image from the DockerHub FROM node:18-alpine # Set the working directory WORKDIR /usr/src/app # Copy the package.json and package-lock.json COPY package*.json ./ # Install dependencies RUN npm install # If you are building your code for production, run `npm ci --only=production` instead of `npm install` # RUN npm ci --only=production # Copy the rest of your app COPY . . # Expose the port the app runs on EXPOSE 3000 # Command to run the application CMD ["npm", "start"]

Саадат-Косумбаева Автор вопроса
Саадат Косумбаева
спасибо💛

# Use the official Node.js 18 image from the DockerHub FROM node:18-alpine as build # Set the working directory WORKDIR /usr/src/app # Copy the package.json and package-lock.json COPY package*.json ./ # Install all dependencies including 'devDependencies' RUN npm install # Copy the rest of your app COPY . . # Build the project. This step will compile the TypeScript code RUN npm run build # Create a new stage and use the official Node.js 18 image from the DockerHub FROM node:18-alpine as production # Set the working directory WORKDIR /usr/src/app # Copy the package.json and package-lock.json COPY package*.json ./ # Install only production dependencies RUN npm ci --only=production # Copy the compiled code from the build stage COPY --from=build /usr/src/app/dist ./dist # Expose the port the app runs on EXPOSE 3000 # Command to run the application CMD ["node", "dist/main"]

Саадат-Косумбаева Автор вопроса

Похожие вопросы

Обсуждают сегодня

Is it a good price to buy hex now on 0,0019?
Patrick
29
Hey folks, If I buy XMR via p2p or atomic swaps, does that impact on its price? Or is that equivalent to transferring from one wallet to another with no impact on price?
𐌊aD𐌍€Z̷̷zꍏ☈ 𝟛
13
hi, just reinstalled komodo wallet, and can't find ARRR on there? tried to search ARRR and pirate and nothing came up... is arrr still supported on komodo wallet. it's been ...
Pilner
10
Hi everyone, long time no see! 🐼 recently i want to update our Ergo Eco-System map, can everyone help to find out, which to delete and other new to add in? list it, that i can...
HEROKOO
15
Anyone here? i had questions about this Hex platform
Mark Keller
9
30 BCH videos in Hausa Language successfully delivered. In December 2023, I created a Flipstarter to produce Bitcoin Cash videos in the Hausa language for greater outreach an...
Munnir
9
If arrr gets implemented on cake wallet. Would that mean arrr/xmr swaps possible in cake wallet like atomic swaps on komodowallet ?
Keks Meister 🏴‍☠️
22
Only just noticed Arrr has gone up. Any particular reason?
⚡️⚡️PHIL⚡️⚡️
11
55. Hi, how's everything with you?TG大会員2U|82. How's life?TG会員2U|83. Hi, how's everything been treating you?飞机会員2U|84. How's your day been so far?電报会員2U|85. Hey, how's everythi...
Allice Grace
2
I will wait, no problem, I invested in other project also, but with my 8 years experience I can see when something is not good enough. Last bull market everyone was so excited...
jeronim jurakovic
1
Карта сайта