- Dockerfile 파일 생성
FROM python:3.8.10
RUN apt -y update
WORKDIR /mysite
COPY . .
RUN pip install django==4.0.4
CMD ["python3", "manage.py", "runserver", "0:8000"]
EXPOSE 8000
- docker build -t django-test .
- docker run -p 8000:8000 -tid django-test
docker-composer.yml version: '3.1' services: redmine: image: redmine restart: always container_na...
댓글 없음:
댓글 쓰기