Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

177
Visualizações
After building docker image my javascript is not working in my nuxt app

I used the shell script to build docker image and my javascript is not working anymore but when i run it without docker it's working but and i' m trying to figure out why this weird behavior because there is not error on my docker and even not in my nuxt app here are some of my files.

Dockerfile

FROM node:14.15.4-alpine


WORKDIR /app

RUN apk update && \
    apk add alpine-sdk && \
    apk add python3


RUN node -v
RUN npm -v


ENV HOST 0.0.0.0
EXPOSE 3000

CMD ["/bin/ash"]

Docker-compose.yml

version: '3'
services:
  web:
    build: .
    ports:
       - 3000:3000
    volumes:
      - ./nttlab:/app
    stdin_open: true
    tty: true
    networks:
      - ntt_platform


networks:
  ntt_platform:
    external: true
about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

I found that there was a warning on my terminal saying that my index file was big and the asset limit did not read the javascript so I had to extend the space on my nuxt.config file as follows:

build: {
/* Extend webpack config */
    extend (config, ctx) {
      config.performance.maxAssetSize = 700 * 1024
    }
}

After adding this I restarted my nuxt app and all the javascript started to work.

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda