# 현재 디렉터리 내용을 컨테이너의 /app 경로에 복사
COPY html /usr/share/nginx/html/
COPY dim.local.crt /etc/nginx/ssl/
COPY dim.local.key /etc/nginx/ssl/
COPY nginx.conf /etc/nginx/
COPY default.conf /etc/nginx/sites-enabled/
# requirements.txt에 지정된 필요한 패키지를 설치
#RUN pip install -r requirements.txt
# COPY 명령어 실행 후 nginx를 재시작해야 하는가?
RUN
RUN apt-get update && \
apt-get install -y nano && \
rm -fr /var/lib/apt/lists/*
Discourse 컨테이너에도 비슷한 단계를 수행해야 하는데, Dockerfile은 어디에 있나요? containers/app.yml 파일의 끝에 이 내용을 추가할 수 있다는 글을 읽었지만, 확신이 서지 않습니다.
## 빌드 후 실행할 사용자 지정 명령
run:
- exec: echo "Beginning of custom commands"
## 첫 번째 가입 시 'From' 이메일 주소를 설정하려면 아래 주석을 해제하고 수정하세요:
## 첫 가입 이메일을 받은 후에는 해당 줄을 다시 주석 처리하세요. 한 번만 실행하면 됩니다.
#- exec: rails r "SiteSetting.notification_email='info@unconfigured.discourse.org'"
- exec: cp /shared/rr/run_badges.sh /etc/cron.d/.
- exec: cp /shared/rr/badges /etc/cron.d/.
- exec: echo "End of custom commands"
FAILED
--------------------
Pups::ExecError: cp /shared/rr/run_badges.sh /etc/cron.d/. failed with return #<Process::Status: pid 1457 exit 1>
Location of failure: /pups/lib/pups/exec_command.rb:112:in `spawn'
exec failed with the params "cp /shared/rr/run_badges.sh /etc/cron.d/."
e23ff12630c8058c4b36ee8673404dafbe6791ec61aa630f1224400eba4e75e0
** FAILED TO BOOTSTRAP ** please scroll up and look for earlier error messages, there may be more than one.
./discourse-doctor may help diagnose the problem.