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.
perktree/Dockerfile-backend

24 lines
421 B
Docker

# vim: set ft=dockerfile :
FROM python:3-alpine
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 \
postgresql-dev \
&& apk add --no-cache postgresql-libs \
&& pip install --no-cache-dir pipenv \
&& pipenv install --system --clear \
&& apk del .build-deps \
&& rm -f db.sqlite3
CMD ["./entrypoint.sh"]