Похожие чаты

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

I get this duplicate error only for copying static folder

12 ответов

23 просмотра

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

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

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

30500 за редактор? )
Владимир
47
а через ESC-код ?
Alexey Kulakov
29
Anyone knows where there are some instructions or discort about failed bridge transactions ?
Jochem
21
Чёт не понял, я ж правильной функцией воспользовался чтобы вывести отладочную информацию? но что-то она не ловится
notme
18
Привет)) уже кажется эту тему перемусолили, но вот я так и не понял. Я сейчас сижу на 27дюймов 2к мониторе. На Актуальной макоси, если я куплю 27д 4к монитор: - будет ли изобр...
Vladislav Piskunov
16
Also, why can’t the community have a vote/ say when it comes to initiatives like buybacks. Isn’t the point of crypto decentralisation? Don’t we deserve input as long term supp...
👨🏽‍🦰
13
any reference of this implementation?
BitBuddha
29
Страшнейшая правда про списки ЦБ. С первых дней жизни P2P сферы, молодые человеки, начитавшись законодательной базы и "внутренних" документов, решили, что им противостоит сер...
Foxcool
3
У меня есть функция где происходит это: write_bit(buffer, 1); write_bit(buffer, 0); write_bit(buffer, 1); write_bit(buffer, 1); write_bit(buffer, 1); w...
~
14
Hi guys, any problem with Pulsebrige? Trying to transfer from wETH to ETH. First it tells me to connect my metamask "through mobile app" not desktop. Then I did and confirmed ...
Snowflakecrypto
13
Карта сайта