Files
timmypidashev.dev/src/landing/Dockerfile.dev
T
Timothy Pidashev 4f93517f9e ports are borked
2024-03-07 13:40:10 -08:00

18 lines
411 B
Docker

FROM python:3.11
# Copy local context to `/app` inside container (see .dockerignore)
WORKDIR /app
COPY . .
# Install app requirements and reflex in the container
RUN pip install -r requirements.txt
# Deploy templates and prepare app
RUN reflex init
# Needed until Reflex properly passes SIGTERM on backend.
STOPSIGNAL SIGKILL
# Always apply migrations before starting the backend.
CMD reflex run --env dev