Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

374
Views
La compilación de Docker falla en Travis --> no se puede encontrar la aplicación/compilación

Estoy tratando de enviar mis imágenes de Travis CI a Docker Hub.

Aquí está mi Dockerfile

 FROM node:alpine as builder WORKDIR /app COPY ./package.json ./ RUN npm install COPY . . CMD npm run build FROM nginx EXPOSE 3000 COPY ./nginx/default.conf /etc/nginx/conf.d/default.conf COPY --from=builder /app/build /usr/share/nginx/html

Mi .travis.yml

 sudo: required services: - docker before_install: - docker build -t aseel/react-test -f ./client/Dockerfile.dev ./client script: - docker run -e CI=true aseel/react-test npm run test after_success: - docker build -t aseel/multi-client ./client - docker build -t aseel/multi-nginx ./nginx - docker build -t aseel/multi-server ./server - docker build -t aseel/multi-worker ./worker - echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_ID" --password-stdin - docker push aseel/multi-server - docker push aseel/multi-nginx - docker push aseel/multi-worker - docker push aseel/multi-client

La razón por la que el empuje está fallando es porque este comando

 docker build -t aseel/multi-client ./client

está fallando en travis (pero no localmente).

Más específicamente, recibo este error en travis

COPY falló: stat /var/lib/docker/overlay2/135282513e177be132b6978986f878ba61f3b89914b6b2f7030cbafa0d33f629/merged/app/build: no existe tal archivo o directorio

¿Alguna idea de por qué sucede esto?

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Necesitaba cambiar CMD a RUN. Fue un error bastante tonto.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!