-
-
Notifications
You must be signed in to change notification settings - Fork 63
/
Dockerfile.py38.test
39 lines (31 loc) · 829 Bytes
/
Dockerfile.py38.test
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
FROM python:3.8-alpine
ENV PYTHONUNBUFFERED=1 \
PRAGMA_VERSION=py3.8 \
DEBUG=0
WORKDIR /code
COPY requirements/ /code/requirements/
RUN set -ex \
&& apk add --no-cache --virtual .build-deps \
gcc \
musl-dev \
python3-dev \
git \
&& pip install pip setuptools wheel --upgrade \
&& pip install -r requirements/base.txt \
&& pip install -r requirements/style.txt \
&& pip install -r requirements/tests.txt \
poetry-core>=1.0.0 \
&& apk del .build-deps \
&& addgroup -S kuchulu \
&& adduser \
--disabled-password \
--gecos "" \
--ingroup kuchulu \
--no-create-home \
-s /bin/false \
kuchulu
ARG VERSION=1
RUN echo "Vesion: ${VERSION}"
COPY . /code/
RUN chown kuchulu:kuchulu -R /code
USER kuchulu