Skip to content
Snippets Groups Projects
Select Git revision
  • f993de64e612d070dcf12ce15c0cacf1fe31a412
  • master default
  • clement
  • fix_requirements
  • new_signup
  • interface_admin
  • hamza
  • dev
  • test
  • melissa
  • context_sheet
  • sorties_new
  • Seon82-patch-2
  • export_bdd
  • refactor/participation-user-link
15 results

test_1

Blame
  • Dockerfile 403 B
    FROM python:3.9 AS build
    
    ## virtualenv
    RUN python3 -m venv /venv
    ENV PATH="/venv/bin:$PATH"
    
    ## add and install requirements
    RUN pip install --upgrade pip && pip install pip-tools
    COPY ./requirements.txt ./
    RUN pip install -r requirements.txt
    
    
    
    FROM python:3.9 AS runtime
    
    EXPOSE 80
    ENV PATH="/venv/bin:$PATH"
    
    COPY --from=build /venv /venv
    WORKDIR /backend
    COPY . .
    
    ENTRYPOINT ["python3", "main.py"]