mirror of
https://github.com/i701/sarlink-portal-api.git
synced 2025-04-19 23:46:53 +00:00
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 2m39s
20 lines
389 B
Docker
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
|