Skip to content

Commit eea91cc

Browse files
committed
feat: move to alpine image
1 parent 5a94a66 commit eea91cc

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Dockerfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
1-
FROM python:3.10
1+
FROM python:3.10-alpine
22

3-
RUN addgroup --gid 1000 server && adduser --uid 1000 --gid 1000 --system server
3+
RUN adduser -D server
44
WORKDIR /home/server
55

66
# Copy requirements first as to not disturb cache for other changes.
77
COPY requirements.txt .
88

9+
# Install dependencies
10+
RUN apk add -U --no-cache libpq-dev build-base
11+
912
RUN pip3 install -r requirements.txt && \
1013
pip3 install gunicorn
1114

0 commit comments

Comments
 (0)