Dockerfile 415 Bytes
Newer Older
1
FROM python:3-alpine
kaiyou's avatar
kaiyou committed
2

3
RUN apk add --no-cache nginx supervisor
kaiyou's avatar
kaiyou committed
4

5
6
ADD . /app
WORKDIR /app
kaiyou's avatar
kaiyou committed
7

8
9
10
11
12
13
14
15
16
RUN apk add --no-cache nodejs \
 && npm install \
 && npm run build \
 && rm -rf node_modules \
 && apk del nodejs

RUN apk add --no-cache gcc libjpeg-turbo-dev zlib zlib-dev \
 && pip install -r /app/requirements.txt \
 && apk del gcc libjpeg-turbo-dev zlib-dev
kaiyou's avatar
kaiyou committed
17

kaiyou's avatar
kaiyou committed
18
19
EXPOSE 80

kaiyou's avatar
kaiyou committed
20
CMD /usr/bin/supervisord -c /config/supervisor.conf