Changes and docker config
Some checks failed
continuous-integration/drone Build is failing

This commit is contained in:
Kevin Alberts 2024-01-23 15:09:09 +01:00
parent 9e324537c3
commit fa6550bcf5
4 changed files with 66 additions and 5 deletions

27
Dockerfile Normal file
View file

@ -0,0 +1,27 @@
# Then build the actual amelie docker image
FROM python:latest
# Set /usr/src/app as startup working directory
WORKDIR /usr/src/app
# Install python requirements
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
# Make dirs
RUN mkdir -p /static /config
# Copy sources
COPY . .
# Check if Django can run
RUN python3 manage.py check
# Expose volumes
VOLUME ["/static", "/config"]
# Expose the web port
EXPOSE 8000
# Start the website
CMD ["/usr/src/app/start.sh"]