-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
40 lines (24 loc) · 853 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
FROM python:3.12-slim
ENV PYTHONUNBUFFERED 1
ENV DJANGO_SETTINGS_MODULE=backend.settings
RUN apt-get update && \
apt-get install -y --no-install-recommends \
git-core \
build-essential \
binutils \
libproj-dev \
gdal-bin \
supervisor && \
rm -rf /var/lib/apt/lists/*
COPY ./requirements /home/codewithmuh-backend/requirements
RUN mkdir -p /home/codewithmuh-backend/media
WORKDIR /home/codewithmuh-backend
RUN pip install --upgrade pip
RUN pip install -r ./requirements/requirements.txt
EXPOSE 8080
RUN mkdir -p /var/logs/codewithmuh
COPY ./build-process/docker-backend-django/scripts /home/docker/scripts
RUN sed -i 's/\r$//' /home/docker/scripts/boot.sh && \
chmod +x /home/docker/scripts/boot.sh
ENTRYPOINT /home/docker/scripts/boot.sh
COPY ./ /home/codewithmuh-backend