1
0
forked from finn/site

dockerized newsite mariadb setup

This commit is contained in:
2024-08-03 08:37:27 -07:00
parent fe2dcd23f1
commit cdeb87184a
12 changed files with 332 additions and 104 deletions

View File

@ -1,5 +1,7 @@
# syntax=docker/dockerfile:1.4
FROM python:3-alpine AS builder
FROM python:3-slim-bookworm AS builder
RUN apt update && apt install -y libmariadb-dev gcc
WORKDIR /code
COPY requirements.txt /code
@ -9,7 +11,7 @@ RUN target=/root/.cache/pip \
# Need to make this explicit as part of expansion, no migrations or venv
COPY . .
ENV FLASK_APP app.py
#ENV FLASK_APP app.py
# This might be scary to leave on
#ENV FLASK_ENV development