-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
32 lines (25 loc) · 992 Bytes
/
Dockerfile
File metadata and controls
32 lines (25 loc) · 992 Bytes
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
31
32
# Image: agaveapi/flask_api
# Base image for Agev APIs based on flask/Flask-restful.
# Usage: decend from this image, add your requirements file and service source code. The requirements file should
# include agaveflask, specifying a particular version if necessary.
#from python:alpine
#RUN apk add --update git
#RUN apk add --update bash && rm -f /var/cache/apk/*
#RUN apk add --update --virtual=.build-dependencies alpine-sdk ca-certificates musl-dev gcc python-dev make cmake g++
FROM ubuntu:14.04
RUN apt-get update
RUN apt-get install -y python-dev
RUN apt-get install -y libxml2-dev libxslt1-dev python3-pip git
RUN mkdir /_flask_api
ADD requirements.txt /_flask_api/requirements.txt
RUN pip3 install -r /_flask_api/requirements.txt
ADD entry.sh /_flask_api/entry.sh
RUN chmod +x /_flask_api/entry.sh
EXPOSE 5000
# provide sensible defaults for the configurations
ENV server dev
ENV package /service
ENV module api
ENV app app
ENV port 5000
CMD ["./_flask_api/entry.sh"]