diff --git a/.nvmrc b/.nvmrc index 790e1105..b8e593f5 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -v20.10.0 +20.15.1 diff --git a/Dockerfile b/Dockerfile index a2daf84b..25469e3d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,19 +1,52 @@ -# Use an official Python runtime as a parent image -FROM python:3.11-slim +# Build stage +FROM python:3.12.4 as builder WORKDIR /app -COPY . /app - # Install system dependencies -RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/* +RUN apt-get update && apt-get install -y --no-install-recommends \ + curl \ + build-essential \ + && rm -rf /var/lib/apt/lists/* # Install Python dependencies +COPY requirements /app/requirements RUN pip install --no-cache-dir -r requirements/dev.txt -RUN pip install django -RUN python manage.py migrate -RUN python manage.py shell <