mirror of
https://github.com/StefBuwalda/cal_counter.git
synced 2025-10-30 03:10:00 +00:00
Introduces entrypoint.sh to handle database migrations before starting the Flask app. Updates Dockerfile to use the new entrypoint script and ensures it is executable.
11 lines
223 B
Docker
11 lines
223 B
Docker
FROM python:3.12-slim
|
|
|
|
# Everything will be done in /app (Not in the main OS Image)
|
|
WORKDIR /app
|
|
COPY . .
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
RUN chmod +x /entrypoint.sh
|
|
|
|
ENTRYPOINT ["/entrypoint.sh"]
|
|
CMD []
|