From 4a4fbb5be2b9a88bdc5bbed24b67d38608611b66 Mon Sep 17 00:00:00 2001 From: Keannu Bernasol Date: Thu, 3 Aug 2023 23:21:47 +0800 Subject: [PATCH] Added dockerfile for docker image building --- Dockerfile | 39 +++++++++++++++++++++++++++++++++++++++ linux-requirements.txt | Bin 0 -> 2326 bytes 2 files changed, 39 insertions(+) create mode 100644 Dockerfile create mode 100644 linux-requirements.txt diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..2b02d13 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,39 @@ +# Use the official Python 3.11 image +FROM python:3.11.4-bookworm + +ENV PYTHONBUFFERED 1 + +# Install necessary dependencies, including cmake +RUN apt-get update && apt-get install -y \ + wget \ + tar \ + cmake \ + proj-bin \ + libgeos-c1v5 \ + libproj-dev \ + libfreexl1 \ + libminizip-dev \ + libspatialite-dev \ + gdal-bin \ + libsqlite3-mod-spatialite + +# Set the working directory to /app +WORKDIR /app + +# Copy the current directory contents into the container at /app +COPY . /app + +# Install pipenv +RUN pip install -r linux-requirements.txt + +# Make migrations +RUN python stude/manage.py makemigrations + +# Run custom migrate +RUN python stude/manage.py custom_migrate + +# Expose port 8000 for the web server +EXPOSE 8000 + +# Run the web server +CMD ["python", "stude/manage.py", "runserver"] \ No newline at end of file diff --git a/linux-requirements.txt b/linux-requirements.txt new file mode 100644 index 0000000000000000000000000000000000000000..6931cc9a7e3f79f70e8c4afda11ae35915fb15db GIT binary patch literal 2326 zcmaKuUr!TJ5XJAai63PN-6HCP4Bg*dF0 zYc=pau?ndQ2((nHl?mDEH+Zd7_0c#)2Vm$L3!&CJ(_8jl*au@6YbRW%$j1CwD(^zy zF9+<2n1YM0mO~V-RNUoR>aVq2gJ&7;#c*XP&f~_+y#E-kjL}m3Vh&i(Em}^ZneyC= z7o0Nl4~NRZBl$`P&;jg88rBi$_RS$m~{RNKRv#4Nt zcE5YfBc9jB`dYtjty{l$@_2`)d0sw;*4g0pKKtiSW@6F|x+?j)6))5+geaXL!rsO843+^ICHOjDsAwq^Fg>!`b_oo9^ii2J3Tzw#M!Z*-(}4=#}*QZKB`g z^_tB8EW8^lKZQ%)`IbO;tQ5D?q5f7V_Rpp1zZey!zMb22uEc9=(WokRZX?bQ@}ZTF zOX)@xr?~^C)~Su+?9sI}Of|c=()o(Dy^^JQ!z=i~AUOAI<@I_(ujC zX}Xn0dJsE9m;HXTjXQbNh+QQV4*0ET#B8D(Z6-jCwI;Q~T2-DRFmDxKWg@{89y;C#XlE z-{@E~?VeuGRGxI~4Wem3`9$1_E8gusGh!Zh3})a~dNuk#V?Jc^+3`KK)hv4+p6HD@ cxdXV3Z|>QnV$AN55bQF#S&JFnq-N^Pe-@KnGXMYp literal 0 HcmV?d00001