two command and whole app running instead of running many commands #18
Replies: 1 comment
-
Hi @Preetkakdiya, Thanks for the suggestion, this is a great idea and would definitely simplify running the project. If you’d like, please go ahead and implement this by adding the Dockerfile and updating the documentation (README) with the build & run commands. Open a pull request, and I’ll review it and merge once everything looks good. Looking forward to your contribution 🚀 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
add docker file in collage_management_system file name Dockerfile and command to up whole website we dont need t run many command file content like this
FROM python:3.8-slim
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
WORKDIR /app
RUN apt-get update && apt-get install -y
build-essential
default-libmysqlclient-dev
libjpeg-dev
zlib1g-dev
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . /app
EXPOSE 8000
CMD ["python", "manage.py", "runserver", "0.0.0.0:8000"]
COMMAND : docker build -t college-erp .
docker run docker run -p 8000:8000 college-erp
Beta Was this translation helpful? Give feedback.
All reactions