We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0a7eec4 commit 58458acCopy full SHA for 58458ac
Dockerfile
@@ -1,16 +1,17 @@
1
-FROM python:3
+FROM python:3-alpine
2
3
WORKDIR /app
4
5
-COPY . .
+COPY requirements.txt .
6
7
-RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash -
8
-RUN apt-get install -y nodejs
+RUN apk add --update nodejs npm \
+ && pip install --no-cache-dir -r requirements.txt \
9
+ && rm -rf /var/cache/apk/*
10
-RUN pip3 install -r requirements.txt
11
+COPY . .
12
13
ENV THREADS=4
14
15
EXPOSE 8080
16
-CMD gunicorn -c config/gunicorn.conf.py -w $THREADS -b :8080 main:app
17
+CMD gunicorn -c config/gunicorn.conf.py -w $THREADS -b :8080 main:app
0 commit comments