Skip to content

Commit cf5e323

Browse files
authored
feat: using alpine as root image (#74)
1 parent 3090c0d commit cf5e323

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Dockerfile

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ ARG PYTHON_VERSION=3.8
33
FROM jrottenberg/ffmpeg:4.2-scratch as ffmpeg
44

55
# Builder
6-
FROM python:${PYTHON_VERSION}-slim as builder
6+
FROM python:${PYTHON_VERSION}-alpine as builder
77

8-
RUN apt-get update && apt-get install -y --no-install-recommends git
8+
RUN apk add --update curl git build-base libffi-dev
99

1010
WORKDIR /root
1111

@@ -14,7 +14,7 @@ COPY requirements.txt /root
1414
RUN pip install --prefix="/install" --no-warn-script-location -r requirements.txt
1515

1616
# Runtime
17-
FROM python:${PYTHON_VERSION}-slim
17+
FROM python:${PYTHON_VERSION}-alpine
1818

1919
# Keeps Python from generating .pyc files in the container
2020
ENV PYTHONDONTWRITEBYTECODE=1

0 commit comments

Comments
 (0)