Skip to content

Commit c9956e4

Browse files
committed
add gcc and musl-dev for the Dockerfile buid process
1 parent d1cb1a8 commit c9956e4

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,16 +1,19 @@
11
#Build stage
2-
FROM python:3.8.11-slim AS builder
2+
FROM python:3.8-alpine3.14 AS builder
33

44
LABEL maintainer="Wasin Waeosri <wasin.waeosri@rifinitiv.com>"
55

6+
# Install gcc + musl-dev
7+
RUN apk add --no-cache gcc musl-dev
68
#Copy requirements.txt
79
COPY requirements.txt .
810

911
# install dependencies to the local user directory (eg. /root/.local)
1012
RUN pip install --user -r requirements.txt
1113

1214
# Run stage
13-
FROM python:3.8.11-alpine
15+
#FROM python:3.8.11-alpine
16+
FROM python:3.8.11-alpine3.14
1417
WORKDIR /app
1518

1619
# Update PATH environment variable + set Python buffer to make Docker print every message instantly.

0 commit comments

Comments
 (0)