17 lines
339 B
Docker
17 lines
339 B
Docker
# syntax=docker/dockerfile:1
|
|
FROM python:3.9.13
|
|
ENV PYTHONDONTWRITEBYTECODE=1
|
|
ENV PYTHONUNBUFFERED=1
|
|
|
|
RUN apt-get update
|
|
|
|
RUN apt-get install -y swig libssl-dev dpkg-dev netcat
|
|
RUN pip install -U pip
|
|
|
|
WORKDIR /code
|
|
COPY requirements.txt /code/
|
|
RUN pip install -r requirements.txt
|
|
|
|
COPY . /code/
|
|
|
|
RUN /code/manage.py collectstatic --noinput |