-
Notifications
You must be signed in to change notification settings - Fork 1
맥 Docker image build 오류
Wonjun Han edited this page Dec 12, 2023
·
1 revision
아래 Dockerfile 로 도커 image를 빌드 할때 계속 오류 메세지가 출력되었다.
FROM jrottenberg/ffmpeg:4.0-alpine
FROM node:lts-alpine
WORKDIR /usr/src/app
COPY package*.json ./
RUN npm i
COPY . .
EXPOSE 1935
CMD ["node","app.js"]
**ERROR: failed to solve: process "/bin/sh -c npm i" did not complete successfully: exit code: 127**
stackoverflow에서 환경변수를 설정하면 된다고 적혀있었다.
- Use this in Dockerfile:
FROM --platform=linux/amd64 golang:1.7
OR - Set
DOCKER_DEFAULT_PLATFORM=linux/amd64
터미널에서 아래와 같이 입력해 환경변수를 설정해 해결했다.
$ export DOCKER_DEFAULT_PLATFORM=linux/amd64