From 0cd53feedc3f96a7e616a2525ecefd8a65dde7f9 Mon Sep 17 00:00:00 2001 From: Chris Clark Date: Wed, 17 Jul 2024 10:37:14 -0400 Subject: [PATCH] better docker container --- .nvmrc | 2 +- Dockerfile | 71 +++++++++++++++++++++++++++++--------------- README.rst | 2 +- docs/development.rst | 2 +- 4 files changed, 50 insertions(+), 27 deletions(-) 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 <