Skip to content

Commit 0da5fbe

Browse files
author
Rub21
committed
Change apine to slim contianer for TM
1 parent 495582c commit 0da5fbe

File tree

1 file changed

+15
-16
lines changed

1 file changed

+15
-16
lines changed

images/tasking-manager-api/Dockerfile

+15-16
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
FROM python:3.7-alpine
1+
FROM python:3.7-slim
22

3-
RUN apk update && \
4-
apk add git
3+
RUN apt update && \
4+
apt install -y git
55

66
ENV workdir /usr/src/app
77

@@ -11,21 +11,20 @@ RUN cd $workdir && git checkout -f f0df07174f4014365220af09187b5f941f9770b0
1111
WORKDIR $workdir
1212

1313
# Setup backend dependencies
14-
RUN apk update && \
15-
apk add \
16-
gcc \
17-
g++ \
18-
make \
19-
musl-dev \
20-
libffi-dev \
21-
python3-dev \
22-
postgresql-dev \
23-
geos-dev \
24-
proj-util \
25-
proj-dev
14+
RUN apt update && apt install -y \
15+
gcc \
16+
g++ \
17+
make \
18+
libffi-dev \
19+
python3-dev \
20+
libpq-dev \
21+
proj-bin && \
22+
apt clean && \
23+
rm -rf /var/lib/apt/lists/*
2624

2725
RUN pip install --upgrade pip
28-
RUN pip install wheel
26+
# RUN pip install wheel
27+
# RUN pip install Cython==3.0.2
2928
RUN pip install -r requirements.txt
3029
RUN pip install apscheduler==3.7.0
3130

0 commit comments

Comments
 (0)