Skip to content

Commit f5da7af

Browse files
authored
add gcc so markupsafe compiles speedups
1 parent 34fe3db commit f5da7af

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: compose/gettingstarted.md

+2
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ following:
8686
WORKDIR /code
8787
ENV FLASK_APP app.py
8888
ENV FLASK_RUN_HOST 0.0.0.0
89+
RUN apk add --no-cache gcc musl-dev linux-headers
8990
COPY requirements.txt requirements.txt
9091
RUN pip install -r requirements.txt
9192
COPY . .
@@ -96,6 +97,7 @@ This tells Docker to:
9697
* Build an image starting with the Python 3.7 image.
9798
* Set the working directory to `/code`.
9899
* Set environment variables used by the `flask` command.
100+
* Install gcc so Python packages such as MarkupSafe and SQLAlchemy can compile speedups.
99101
* Copy `requirements.txt` and install the Python dependencies.
100102
* Copy the current directory `.` in the project to the workdir `.` in the image.
101103
* Set the default command for the container to `flask run`.

0 commit comments

Comments
 (0)