We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5ad417 commit 396d011Copy full SHA for 396d011
Dockerfile
@@ -1,10 +1,17 @@
1
FROM python:3.8-alpine
2
3
+ARG buildDeps='gcc g++ unixodbc-dev'
4
+
5
WORKDIR /usr/src/app
6
7
COPY . .
8
-RUN pip3 install -r requirements/prod.txt
9
+RUN apk update \
10
+ && apk add --no-cache $buildDeps \
11
+ && pip3 install --no-cache-dir -r requirements/prod.txt \
12
+ && apk del $buildDeps \
13
+ && rm -rfv /root/.cache/pip/* && \
14
+find /usr/local \( -type d -a -name test -o -name tests \) -o \( -type f -a -name '*.pyc' -o -name '*.pyo' \) -exec rm -rfv '{}' \+
15
16
ENV FLASK_APP time_tracker_api
17
0 commit comments