28 lines
739 B
Plaintext
28 lines
739 B
Plaintext
#FROM alpine:3.13.5 as build
|
|
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
|
|
|
|
#EXPOSE 7039
|
|
#WORKDIR /api
|
|
#CMD [ "python3", "start.py" ]
|
|
|
|
#FROM nginx:alpine as production
|
|
COPY default.conf /etc/nginx/conf.d/default.conf
|
|
#COPY --from=build /api/api/static /usr/share/nginx/html
|
|
ADD entrypoint.sh /docker-entrypoint.d/
|
|
RUN chmod 775 /docker-entrypoint.d/entrypoint.sh
|
|
#CMD ["entrypoint.sh"] |