forked from dbca-wa/scrooge
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
18 lines (16 loc) · 663 Bytes
/
Copy pathDockerfile
File metadata and controls
18 lines (16 loc) · 663 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
FROM python:3.6.6-alpine
MAINTAINER asi@dbca.wa.gov.au
RUN apk update \
&& apk upgrade \
&& apk add --no-cache --virtual .build-deps postgresql-dev gcc python3-dev musl-dev \
&& apk add --no-cache libpq bash git
WORKDIR /usr/src/app
COPY manage.py requirements.txt gunicorn.ini ./
COPY recoup ./recoup
COPY scrooge ./scrooge
RUN pip install --no-cache-dir -r requirements.txt
RUN python manage.py collectstatic --noinput
RUN apk del .build-deps
HEALTHCHECK --interval=1m --timeout=5s --start-period=10s --retries=3 CMD ["wget", "-q", "-O", "-", "http://localhost:8080/healthcheck"]
EXPOSE 8080
CMD ["gunicorn", "scrooge.wsgi", "--config", "gunicorn.ini"]