Files
eamco_authorize/Dockerfile.local
Edwin Eames 3204451a5e Update Dockerfiles to copy .env file
- Add .env file copy to all Dockerfile variants (dev, local, prod)
- Ensures environment variables are available in containers
- Part of environment configuration centralization
2026-02-01 19:02:49 -05:00

25 lines
630 B
Docker

FROM python:3.9
ENV PYTHONFAULTHANDLER=1
ENV PYTHONUNBUFFERED=1
ENV MODE="LOCAL"
WORKDIR /app
# Install Chrony (modern NTP implementation)
RUN apt-get update && apt-get install -y chrony
# Configure Chrony NTP servers
RUN echo "server time.nist.gov iburst" >> /etc/chrony/chrony.conf
RUN echo "server pool.ntp.org iburst" >> /etc/chrony/chrony.conf
# Copy and install Python dependencies
COPY requirements.txt requirements.txt
COPY .env .env
RUN pip install -r requirements.txt
# Copy source code
COPY . .
# Start Chrony service and then run the application
CMD chronyd -d && uvicorn app.main:app --host 0.0.0.0 --port 8000