Sha256: 1b1a87e20f49f7bb995fbeed8cb5f63d56b08b8e2ef3ab5d0046b2b265f47439

Contents?: true

Size: 427 Bytes

Versions: 1

Compression:

Stored size: 427 Bytes

Contents

# syntax=docker/dockerfile:1

FROM python:<%= @env[:base][:python_version][:value] %> AS builder
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
WORKDIR /code

RUN python -m pip install Django psycopg2

<%= partial('python_requirements') %>

RUN django-admin startproject <%= @env[:base][:app_name][:value] %> .

COPY . /code/

RUN pip freeze > requirements.txt

FROM scratch AS export-stage

COPY --from=builder ./code/ .

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
roro-0.3.33 lib/roro/stacks/unstoppable_developer_styles/okonomi/languages/python/frameworks/django/templates/builder/Dockerfile.tt