This repository has been archived on 2020-09-13. You can view files and clone it, but cannot push or open issues or pull requests.
magic-app/Dockerfile

30 lines
449 B
Docker
Raw Normal View History

2020-07-04 11:12:31 +00:00
FROM python:3.8-alpine
ENV APP_ROOT /magic_app/
ENV CELERY_USER celery
WORKDIR ${APP_ROOT}
COPY . ${APP_ROOT}
RUN apk add --update \
build-base \
curl \
git \
libffi-dev \
libsasl \
openssl-dev \
2020-07-04 11:12:31 +00:00
python3-dev
RUN addgroup -S ${CELERY_USER}
RUN adduser -D \
-h ${APP_ROOT} \
2020-07-04 11:12:31 +00:00
-s /usr/sbin/nologin \
-G ${CELERY_USER} \
${CELERY_USER}
2020-07-04 11:12:31 +00:00
RUN pip install "poetry>=1.0.9,<2.0"
RUN poetry install \
--no-dev \
--no-interaction