add Dockerfile, .dockerignore, requirements.txt
This commit is contained in:
parent
a4ef7a72e8
commit
024940243d
4 changed files with 46 additions and 0 deletions
17
Dockerfile
Normal file
17
Dockerfile
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
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"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue