Fixing issues with env
All checks were successful
Build and Publish Docker Image / build (push) Successful in 3m33s

This commit is contained in:
Timothy Rogers 2025-05-24 14:04:51 -04:00
parent 90fd42782a
commit 88d4fc909a
3 changed files with 36 additions and 8 deletions

View file

@ -4,11 +4,17 @@ FROM python:3.9-slim
# Set working directory
WORKDIR /app
# Set build-time arguments
ARG FLASK_ENV=production
ARG FLASK_APP=app.py
ARG STORAGE_URL=file:///app/static/uploads
# Set environment variables
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
ENV FLASK_APP=app.py
ENV FLASK_ENV=production
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
FLASK_APP=${FLASK_APP} \
FLASK_ENV=${FLASK_ENV} \
STORAGE_URL=${STORAGE_URL}
# Install system dependencies
RUN apt-get update \