-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
executable file
·29 lines (23 loc) · 1008 Bytes
/
Dockerfile
File metadata and controls
executable file
·29 lines (23 loc) · 1008 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
# Begin with a lightweight Python 3.7.3 container, which is the same
# version we used for our development. Alpine Linux is a minimal
# distribution and is popular for containerized apps.
FROM python:3.7.3-alpine
LABEL maintainer="soussif@gmail.com"
# Shell commands to execute after basic Python 3.7 container
# is deployed. We only need to install flash for this app.
RUN apk add --no-cache mariadb-dev build-base && \
pip install requests flask SQLAlchemy==1.4.22 mysqlclient==2.0.3 xmltodict flask_wtf bs4
# Change into the correct directory. WORKDIR is the Docker best practice
# versus "RUN cd /src" as it is cleaner and more explicit.
COPY src /src
WORKDIR /src
# Flash default HTTP port is TCP 5000 in the CRM app. This doesn't actually
# publicly expose the port but serves as a useful reference.
EXPOSE 5000/tcp
# # Show current directory and files inside
# RUN pwd
# RUN ls -larth
# Run the program by starting flask
ENTRYPOINT ["python"]
CMD ["start.py"]
# CMD [ "python", "start.py" ]