-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
24 lines (19 loc) · 648 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM alpine:3.18
LABEL maintainer="Jyoti Verma <jyoverma@cisco.com>"
ENV PIP_IGNORE_INSTALLED 1
# install packages we need
RUN apk update && apk add --no-cache musl-dev openssl-dev gcc py3-configobj \
supervisor libffi-dev uwsgi-python3 uwsgi-http jq syslog-ng uwsgi-syslog \
py3-pip python3-dev git
# do the Python dependencies
ADD Pipfile Pipfile.lock /
RUN set -ex && pip install --no-cache-dir --upgrade pipenv && pipenv install --system
RUN chown -R uwsgi.uwsgi /etc/uwsgi
# copy over scripts to init
ADD scripts /
RUN mv /uwsgi.ini /etc/uwsgi
RUN chmod +x /*.sh
ADD code /app
# entrypoint
ENTRYPOINT ["/entrypoint.sh"]
CMD ["/start.sh"]