mirror of
https://github.com/lemeow125/StudE-Backend.git
synced 2025-06-28 16:25:44 +08:00
Improved docker related files and added redis server for django channels
This commit is contained in:
parent
8d88424159
commit
7053f1d487
7 changed files with 333 additions and 198 deletions
14
Dockerfile
14
Dockerfile
|
@ -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"]
|
Loading…
Add table
Add a link
Reference in a new issue