18 lines
328 B
Docker
18 lines
328 B
Docker
FROM alpine:3.7
|
|
|
|
EXPOSE 8042
|
|
WORKDIR /usr/src/app
|
|
|
|
RUN apk add --no-cache \
|
|
python3 \
|
|
py3-gunicorn
|
|
|
|
COPY requirements.txt .
|
|
RUN pip3 install --upgrade pip && \
|
|
pip3 install --no-cache-dir -r requirements.txt
|
|
|
|
COPY . .
|
|
|
|
CMD ["gunicorn", "pluralityspace.wsgi:application", \
|
|
"--bind", "0.0.0.0:8042"]
|