This repository has been archived on 2021-03-10. You can view files and clone it, but cannot push or open issues or pull requests.
2019-03-23 04:52:49 +01:00
|
|
|
# vim: set ft=dockerfile :
|
2019-03-23 05:24:14 +01:00
|
|
|
FROM python:3-alpine
|
2019-03-23 04:52:49 +01:00
|
|
|
|
|
|
|
COPY backend /app
|
|
|
|
WORKDIR /app
|
|
|
|
EXPOSE 80
|
|
|
|
|
|
|
|
RUN set -ex \
|
|
|
|
&& apk add --no-cache --virtual .build-deps \
|
|
|
|
gcc \
|
|
|
|
make \
|
|
|
|
libc-dev \
|
|
|
|
musl-dev \
|
|
|
|
libffi-dev \
|
2019-03-24 22:49:16 +01:00
|
|
|
postgresql-dev \
|
|
|
|
&& apk add --no-cache postgresql-libs \
|
2019-03-23 04:52:49 +01:00
|
|
|
&& pip install --no-cache-dir pipenv \
|
|
|
|
&& pipenv install --system --clear \
|
|
|
|
&& apk del .build-deps \
|
2019-03-23 05:25:27 +01:00
|
|
|
&& rm -f db.sqlite3
|
2019-03-23 04:52:49 +01:00
|
|
|
|
|
|
|
CMD ["./entrypoint.sh"]
|
|
|
|
|