davinci/Dockerfile
Kevin Alberts 46e5b0b968
Some checks failed
continuous-integration/drone Build is failing
Update dockerfile and requirements
2024-01-23 15:17:59 +01:00

29 lines
541 B
Docker

# 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 --upgrade pip
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"]