Improved docker related files and added redis server for django channels

This commit is contained in:
Keannu Christian Bernasol 2023-09-12 19:26:37 +08:00
parent 8d88424159
commit 7053f1d487
7 changed files with 333 additions and 198 deletions

View file

@ -18,11 +18,14 @@ RUN apt-get update && apt-get install -y \
gdal-bin \
libsqlite3-mod-spatialite
# Set the working directory to /app
WORKDIR /app
# Create directory
RUN mkdir /code
# Copy the current directory contents into the container at /app
COPY . /app
# Set the working directory to /code
WORKDIR /code
# Mirror the current directory to the working directory for hotreloading
ADD . /code/
# Install pipenv
RUN pip install -r linux-requirements.txt
@ -35,6 +38,3 @@ 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"]