forked from fossasia/meilix-generator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dockerfile
30 lines (24 loc) · 816 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
25
26
27
28
29
30
# Set the base image
FROM alpine:latest
RUN apk add --no-cache py-crypto \
py-tornado \
py-mysqldb \
python && \
python -m ensurepip && \
rm -r /usr/lib/python*/ensurepip && \
pip install --upgrade pip setuptools && \
rm -r /root/.cache
# File Author / Maintainer
MAINTAINER Xeon Zolt
#creating dir for Meilix Generator
RUN mkdir /app
WORKDIR /app
# installing required apps
## installing required python modules
ADD requirements.txt /app/
RUN pip install -r requirements.txt
#adding Meilix Generator code
COPY . /app/
# starting the app
ENTRYPOINT ["gunicorn", "-b", "0.0.0.0:8000", "--access-logfile", "-", "--error-logfile", "-"]
CMD ["app:app"]