1
0
Fork 0
mirror of https://github.com/seanmorley15/AdventureLog.git synced 2025-07-24 15:29:36 +02:00

Add creation command to dockerfile

This commit is contained in:
Sean Morley 2024-11-05 11:15:57 -05:00
parent de45296dc1
commit 04b332e031

View file

@ -13,12 +13,16 @@ WORKDIR /code
# Install system dependencies (Nginx included)
RUN apt-get update \
&& apt-get install -y git postgresql-client gdal-bin libgdal-dev nginx \
&& apt-get clean
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# Install Python dependencies
COPY ./server/requirements.txt /code/
RUN pip install --upgrade pip
RUN pip install -r requirements.txt
RUN pip install --upgrade pip \
&& pip install -r requirements.txt
# Create necessary directories
RUN mkdir -p /code/static /code/media
# Copy the Django project code into the Docker image
COPY ./server /code/
@ -37,4 +41,4 @@ RUN chmod +x /code/entrypoint.sh
EXPOSE 80 8000
# Command to start Nginx and Gunicorn
CMD ["bash", "-c", "service nginx start && /code/entrypoint.sh"]
CMD ["bash", "-c", "service nginx start && /code/entrypoint.sh"]