F
F
Fdrsmrdv2021-02-03 10:25:03
GitLab
Fdrsmrdv, 2021-02-03 10:25:03

Why is there different behavior when building a Dockerfile locally and in CI/DI?

docfile:

FROM keymetrics/pm2:12-alpine
ARG APP_DIR=app
RUN mkdir -p ${APP_DIR}
WORKDIR ${APP_DIR}
COPY package.json ./
RUN yarn
COPY . .
RUN yarn build
EXPOSE 3000
CMD [ "pm2-runtime", "ecosystem.config.js", "--env", "production" ]


At the assembly locally does not produce any errors. When trying to build from CI / CD in Gitlab, it gives an error:
601a4f165779e424811209.jpeg

In CI / CD, runs docker:19.03-dind Runs
Docker Desktop locally

Runs with docker build --tag *******:latest .

Answer the question

In order to leave comments, you need to log in

1 answer(s)
�
âš¡ Kotobotov âš¡, 2021-02-03
@angrySCV

well, it seems like you don’t have some module installed on your roker, which is building from gitlab)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question