File: Dockerfile.dev

package info (click to toggle)
django-q 1.9.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,268 kB
  • sloc: python: 5,686; makefile: 181; sh: 30
file content (28 lines) | stat: -rw-r--r-- 507 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# 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

RUN set -ex \
    && apt update \
    && apt-get install gcc python3-dev --yes

# 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