Files
RasadDam_Backend/Dockerfile

31 lines
628 B
Docker
Raw Normal View History

# pull official base image
2025-11-30 15:14:17 +03:30
FROM seniorkian/python310-rasaddam:1.0.0
# Create the app directory
2025-10-19 11:27:01 +03:30
RUN #mkdir /app
# set work directory
WORKDIR app/
# set environment variables
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
# install dependencies
RUN pip install --upgrade pip
COPY ./requirements.txt .
2025-11-18 11:57:32 +03:30
RUN --mount=type=cache,target=/root/.cache/pip \
pip install --no-cache-dir -r requirements.txt
# copy project
COPY . /app/
2025-10-19 11:33:57 +03:30
# Add entrypoint permission
RUN chmod +x /app/entrypoint.sh
EXPOSE 5000
2025-11-25 09:34:01 +03:30
ENTRYPOINT ["/app/entrypoint.sh"]
CMD ["gunicorn", "Rasaddam_Backend.wsgi:application", "--bind", "0.0.0.0:5000"]