computer-science-club

computer-science-club
git clone https://git.prime8.dev/computer-science-club.git
Log | Files | Refs | README | LICENSE

Dockerfile (384B)


      1 FROM python:3.11-slim
      2 
      3 RUN apt-get update && apt-get install -y \
      4     build-essential \
      5     && rm -rf /var/lib/apt/lists/*
      6 
      7 WORKDIR /app/
      8 COPY . /app/
      9 
     10 RUN pip install --no-cache-dir \
     11   gunicorn \
     12   flask \
     13   schoolopy \
     14   schedule \
     15   cachecontrol \
     16   google-auth \
     17   google_auth_oauthlib
     18 
     19 ENV PATH="/app/venv/bin:$PATH"
     20 
     21 EXPOSE 80
     22 
     23 CMD ["gunicorn", "-b", "0.0.0.0:80", "main:app"]