
Python
209
Вклад в тег
RUN apk add --no-cache --virtual .build-deps gcc musl-dev \
&& pip install cython \
&& apk del .build-deps gcc musl-dev
FROM python:3.8-alpine
RUN apk add --no-cache --virtual .build-deps gcc musl-dev \
&& pip install cython \
&& apk del .build-deps gcc musl-dev
COPY requirements.txt .
RUN pip install -r requirements.txt
docker build -t appname:1.0 .
python manage.py runserver 127.0.0.1:8000
python manage.py runserver 127.0.0.2:8080
#ifdef MS_WINDOWS
/* Issue #26227: gethostbyaddr() returns a string encoded
* to the ANSI code page */
return PyUnicode_DecodeFSDefault(name);
#else
/* Decode from UTF-8 */
return PyUnicode_FromString(name);
#endif