Newer
Older
Alessandro Cerioni
committed
FROM python:3.7-slim
Alessandro Cerioni
committed
# cf. https://github.com/nodesource/distributions/blob/master/README.md#installation-instructions
RUN apt update && apt install -y curl gnupg
Alessandro Cerioni
committed
RUN curl -sL https://deb.nodesource.com/setup_12.x | bash -
Alessandro Cerioni
committed
RUN apt install -y nodejs
Alessandro Cerioni
committed
COPY package.json .
COPY package-lock.json .
Alessandro Cerioni
committed
RUN pip install -r requirements.txt
RUN npm install
Alessandro Cerioni
committed
COPY lib/jwt_factory.js ./lib/
COPY templates/*.html ./templates/
COPY api.py .
COPY main.py .
EXPOSE 8000
Alessandro Cerioni
committed
CMD gunicorn --workers=2 -b 0.0.0.0:8000 --log-level=debug api:api