Newer
Older

Maarten de Waard
committed
FROM python:3.9-alpine
RUN apk add gcc libc-dev libffi-dev
WORKDIR /usr/src/app
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
ARG FLASK_PORT=5002
EXPOSE $FLASK_PORT
ENV FLASK_ENV production
ENV FLASK_RUN_PORT $FLASK_PORT
ENV FLASK_RUN_HOST 0.0.0.0
ENV HYDRA_ADMIN_URL http://localhost:4445
CMD [ "flask", "run" ]