Skip to content
This repository was archived by the owner on Oct 24, 2024. It is now read-only.

Commit 69bf121

Browse files
committed
refactor(docker): Change python image + gcc
The previous python-alpine image was causing verry long build times for the gcc compiler (which will be needed later) ref: sass/libsass-python#285 sass/libsass-python#282
1 parent 171f90b commit 69bf121

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Dockerfile

+6-3
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,22 @@
1-
FROM python:3.11-alpine AS build
1+
FROM python:3.11-slim AS build
22

33
RUN pip install --no-cache-dir -U poetry
44

55
COPY pyproject.toml poetry.lock ./
66
RUN poetry export --with dev -f requirements.txt --output requirements.txt
77

8-
FROM python:3.11-alpine
8+
FROM python:3.11-slim
99

1010
ENV PATH=$PATH:/home/docker/.local/bin \
1111
PYTHONUNBUFFERED=1
1212

1313
WORKDIR /project
1414

15-
RUN adduser -D -g "docker" docker
15+
RUN adduser --gecos "docker" docker
1616
RUN chown -R docker:docker /project
17+
RUN apt update
18+
RUN apt install -y gcc
19+
1720
USER docker
1821

1922
COPY --from=build ./requirements.txt .

0 commit comments

Comments
 (0)