Skip to content
Snippets Groups Projects
Select Git revision
  • 49c0fa6c88d5dc20b8218831345e094e5b4c4a10
  • main default
2 results

Dockerfile

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