-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (22 loc) · 757 Bytes
/
Dockerfile
File metadata and controls
25 lines (22 loc) · 757 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
FROM alpine:latest
MAINTAINER Bill Shetti "billshetti@gmail.com"
WORKDIR /app
ADD . /app
ENV MYSQL_ID="db_app_user"
ENV MYSQL_PASSWORD="VMware123!"
ENV MYSQL_SERVER="fitcyclecustomers.cy4b7ufzt54x.us-west-2.rds.amazonaws.com"
RUN apk update && \
apk add mysql mysql-client && \
apk add py-pip && \
apk add py-sqlalchemy && \
apk add py-flask && \
apk add py-mysqldb && \
apk add py-requests
COPY entrypoint/docker-entrypoint.sh /usr/local/bin/
RUN chmod 777 /usr/local/bin/docker-entrypoint.sh
RUN ln -s /usr/local/bin/docker-entrypoint.sh /app # backwards compat
COPY ./requirements.txt /app/requirements.txt
RUN pip install -r requirements.txt
EXPOSE 5000
ENTRYPOINT ["docker-entrypoint.sh"]
#CMD ["python", "api_server.py"]