sarlink-portal-api/.build/prod/api.Dockerfile
Shihaam Abdul Rahman 906644b7c7
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 2m39s
update dockerfile
2025-03-14 23:53:08 +05:00

20 lines
389 B
Docker

FROM python:3.11.4-slim-buster AS builder
WORKDIR /var/www/html/
COPY . .
RUN pip install -r requirements.txt
## aidhaan pls fix having to require this.
ENV EMAIL_HOSTNAME ""
ENV EMAIL_PORT "12312"
ENV EMAIL_USERNAME ""
ENV EMAIL_PASSWORD ""
RUN python3 manage.py collectstatic
VOLUME /var/www/html/staticfiles/
CMD gunicorn apibase.wsgi:application --bind 0.0.0.0:4000 --workers=4