Skip to content
Snippets Groups Projects
Select Git revision
  • 72983f2d1ed5fc0df1eeb670e1e2ae63d1748104
  • master default
2 results

template.html

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"]