22 lines
655 B
Docker
22 lines
655 B
Docker
FROM nginx:alpine as production
|
|
MAINTAINER isard <info@isard.com>
|
|
|
|
RUN apk add --no-cache python3 py3-pip
|
|
RUN pip3 install --upgrade pip
|
|
RUN apk add --no-cache --virtual .build_deps \
|
|
build-base \
|
|
python3-dev \
|
|
libffi-dev
|
|
COPY ./requirements.pip3 /requirements.pip3
|
|
RUN pip3 install --no-cache-dir -r requirements.pip3
|
|
RUN apk del .build_deps
|
|
|
|
RUN apk add curl py3-yaml
|
|
|
|
COPY ./src /api
|
|
|
|
RUN wget -qO - https://fontawesome.com/v4.7/assets/font-awesome-4.7.0.zip | busybox unzip -d /api/api/static/css/ -
|
|
|
|
COPY default.conf /etc/nginx/conf.d/default.conf
|
|
ADD entrypoint.sh /docker-entrypoint.d/
|
|
RUN chmod 775 /docker-entrypoint.d/entrypoint.sh |