Похожие чаты

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

I get this duplicate error only for copying static folder

12 ответов

25 просмотров

try changing it to static2 or just . or something else

Mehdi- Автор вопроса
Agent Q | PM me for Paid Support
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 | PM me for Paid Support
try changing it to static2 or just . or something ...

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

Mehdi- Автор вопроса
Agent Q | PM me for Paid Support
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 | PM me for Paid Support
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 | PM me for Paid Support
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

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

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

Господа, а что сейчас вообще с рынком труда на делфи происходит? Какова ситуация?
Rꙮman Yankꙮvsky
29
А вообще, что может смущать в самой Julia - бы сказал, что нет единого стандартного подхода по многим моментам, поэтому многое выглядит как "хаки" и произвол. Короче говоря, с...
Viktor G.
2
@Benzenoid can you tell me the easiest, and safest way to bu.y HEX now?
Živa Žena
20
This is a question from my wife who make a fortune with memes 😂😂 About the Migration and Tokens: 1. How will the old tokens be migrated to the new $LGCYX network? What is th...
🍿 °anton°
2
30500 за редактор? )
Владимир
47
а через ESC-код ?
Alexey Kulakov
29
What is the Dex situation? Agora team started with the Pnetwork for their dex which helped them both with integration. It’s completed but as you can see from the Pnetwork ann...
Ben
1
Гайс, вопрос для разносторонее развитых: читаю стрим с юарта, нада выделять с него фреймы с определенной структурой, если ли чо готовое, или долбаться с ринг буффером? нада у...
Vitaly
9
Anyone knows where there are some instructions or discort about failed bridge transactions ?
Jochem
21
@lozuk how do I get my phex copies of my ehex from a atomic wallet, to move to my rabby?
Justfrontin 👀
11
Карта сайта