Похожие чаты

Did enyone worked with docker ? I don't know why

I get this duplicate error only for copying static folder

12 ответов

14 просмотров

try changing it to static2 or just . or something else

Mehdi- Автор вопроса
Agent Q | You PM me, You Pay
try changing it to static2 or just . or something ...

but for working fine in my nuxt project I need it to be static

Mehdi- Автор вопроса
Agent Q | You PM me, You Pay
try changing it to static2 or just . or something ...

with . it will copy inside of static not the folder itself

Mehdi- Автор вопроса
Agent Q | You PM me, You Pay
COPY static .

It'll copy content of the static folder

Mehdi
It'll copy content of the static folder

then when not change the work dir to static and then copy the contents of the static folder to there?

Mehdi- Автор вопроса

for moving nuxt to server these 4 thing that i copy are required and then need to install the required packages

Try this # Dockerfile FROM node:11.13.0-alpine # create destination directory RUN mkdir -p /usr/src/nuxt-app WORKDIR /usr/src/nuxt-app # update and install dependency RUN apk update && apk upgrade RUN apk add git # copy the app, note .dockerignore COPY . /usr/src/nuxt-app/ RUN npm install RUN npm run build EXPOSE 3000 ENV NUXT_HOST=0.0.0.0 ENV NUXT_PORT=3000 CMD [ "npm", "start" ]

Mehdi- Автор вопроса
Agent Q | You PM me, You Pay
Try this # Dockerfile FROM node:11.13.0-alpine #...

It'll build website into container and both dev files and build files exist together,

I know. I'm saying try it. If it works then there's no issue with the overall project. Then just need to fiddle with this working Dockerfile to get you to build your customized Dockerfile that you need.

Mehdi- Автор вопроса
Agent Q | You PM me, You Pay
I know. I'm saying try it. If it works then there'...

:D I know how to fix it to project work I am trying to optimize the process

Mehdi
:D I know how to fix it to project work I am tryin...

My way to optimize the process would be to use multi-stage build. But to each their own

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

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

Hello Everyone 🙌🏻💜 Happy (?) Friday to everyone 😁😁 I have read through all the comments/feedback/complaints in the last 2 days following the CEO Update AMA. Clearly the ...
Patrick - Ultra.io
4
How did we have so many dormant scammers in here? Who are these people. It’s been years. We know each other. If you dm me “I’ve been an og” but haven’t said a single word her...
Justin | LGCY |
42
Кстати, а я вот тут подумал. Допустим, у нас имеется цикл который выполняет огромное количество итераций, но мы хотим, чтобы какие-то действия исполнилось только один раз. В Я...
The Bird of Hermes
23
Доброй ночи. Вопрос знатокам. Имеется некая таблица, результат которой выведен в DBGrid на форме. И есть форма, с помощью которой можно как добавить запись, так и отредактиров...
Евгений
28
🌟 Great News from Dypius! 🌟 We're happy to announce the Early Access launch of the Dypius Mobile App by the end of this month! Let's dive into the features you'll get to exp...
DYP | Tim
3
Guys I want to exec into a container running on Fargate like this: aws ecs execute-command --cluster my-cluster --task task_id --container app --command bash --interactive ...
Ehsan
14
а всё почему? потому что ассемблер в отличии от яву порождает множество пагубных привычек, среди которых например можно отметить использование глобальных переменных для всего ...
Mixail Frolov
35
Dan continues to show up to AMA's, supports and speaks about ergo, hired two ergo devs to be part of the team, developed open source software that anyone can use on ergo, offe...
qx()
24
Всем привет 👋 Подскажите пожалуйста, а чего тут не хватает permission или образ битый? Running with gitlab-runner 17.0.0 (44feccdf) on gitlab-runner-c58775949-d7znz YxYz2zp...
Max
2
анрей С какой целью зашёл?
КТ315
42
Карта сайта