We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 34fe3db commit f5da7afCopy full SHA for f5da7af
compose/gettingstarted.md
@@ -86,6 +86,7 @@ following:
86
WORKDIR /code
87
ENV FLASK_APP app.py
88
ENV FLASK_RUN_HOST 0.0.0.0
89
+ RUN apk add --no-cache gcc musl-dev linux-headers
90
COPY requirements.txt requirements.txt
91
RUN pip install -r requirements.txt
92
COPY . .
@@ -96,6 +97,7 @@ This tells Docker to:
96
97
* Build an image starting with the Python 3.7 image.
98
* Set the working directory to `/code`.
99
* Set environment variables used by the `flask` command.
100
+* Install gcc so Python packages such as MarkupSafe and SQLAlchemy can compile speedups.
101
* Copy `requirements.txt` and install the Python dependencies.
102
* Copy the current directory `.` in the project to the workdir `.` in the image.
103
* Set the default command for the container to `flask run`.
0 commit comments