21 lines
324 B
Docker
21 lines
324 B
Docker
FROM python:3-alpine
|
|
|
|
RUN apk add --no-cache --upgrade bash
|
|
RUN mkdir -p /www
|
|
WORKDIR /www
|
|
|
|
COPY . .
|
|
|
|
RUN chmod +x start.sh
|
|
RUN set -e; \
|
|
apk add --no-cache --virtual .build-deps \
|
|
gcc \
|
|
libc-dev \
|
|
linux-headers \
|
|
; \
|
|
pip install -r requirements.txt; \
|
|
apk del .build-deps;
|
|
|
|
#EXPOSE 9090
|
|
ENTRYPOINT ["./start.sh"]
|