mirror of
https://github.com/django-q2/django-q2.git
synced 2026-09-15 13:37:56 +08:00
25 lines
427 B
Docker
25 lines
427 B
Docker
# Sets the python version
|
|
FROM python:3.9.5-slim
|
|
|
|
# Allows the logs generated by python apps to be rendered in the terminal
|
|
ENV PYTHONUNBUFFERED 1
|
|
|
|
# Sets the default shell to bash
|
|
ENV SHELL /bin/bash
|
|
|
|
# Upgrades pip
|
|
RUN pip install -U pip setuptools
|
|
|
|
# Install poetry
|
|
RUN pip install poetry==1.8.2
|
|
|
|
WORKDIR /app
|
|
|
|
COPY . .
|
|
|
|
RUN poetry lock --no-update
|
|
|
|
RUN poetry config virtualenvs.create false
|
|
|
|
RUN poetry install -E testing
|