Похожие чаты

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

I get this duplicate error only for copying static folder

12 ответов

13 просмотров

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

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

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

Is UniBright Freequity an active live product ? A friend here in Asia was discussing the Tokenisation of RWA’s in his case Real Estate as he’s a developer with numerous overs...
Digital Trust
4
Hi, is it fine to use git to backup my config? I did so many things that I don't want to miss if I switched to another OS, so how do you backup your home and configs? And shou...
Adnan Al_Beda
30
коллеги, добрый вечер! А никто не знает как модальная форма может себя закрыть? Ну допустим модальная форма определила, что смысла ей работать нет и хочет вернуть modalResult...
Михаил
83
Добрый день задумываюсь о создание токена из за того что много свободного времени и вот я узнал что транзакции за перевод этого токена будут в waves и тут пришла идея при тран...
Артем
3
А если изначально бот работал так : есть сайт онлайн школы. У каждого ученика свой кабинет. Где он авторизуется по своим данным. И уже в кабинете, на самом сайте делает оплату...
Денис 💡 Фрилансер
13
А что ты вообще делаешь ?
Yesgoter
13
На работе пишем распределенное приложение, у которого сотни, если не тысячи настроек. Конфиги написаны на xml, расположены на разных хостах и должны быть согласованы друг с др...
Aleksandr Druzhinin
5
Crypto aman premium grp koi join kiya hai... Kaisa hai service any one idea??
Arvind Sharma
16
Всем привет 🙂 Какая-то непонятная проблема у меня с видео, раньше такого не было. Загружаю видео с гугл диска именно в видео mp4 и меняю ссылку как положено вот она: https://d...
Ксюша|Верстка на Тильде|Дизайн 🦥
6
Добрый день Хочу начать обучение языку, не являюсь представителем it, буду благодарна за помощь, совсем пока не понимаю ничего) Подскажите, пожалуйста, где можно начать первы...
Sara Lala
18
Карта сайта