File tree Expand file tree Collapse file tree 1 file changed +5
-15
lines changed Expand file tree Collapse file tree 1 file changed +5
-15
lines changed Original file line number Diff line number Diff line change 1
- ARG PYTHON_VERSION=3.8
1
+ ARG PYTHON_VERSION=3.9
2
2
FROM python:${PYTHON_VERSION}
3
3
4
- # Default UID/GID to 1000
5
- # it can be overridden at build time
6
- ARG BUILDER_UID=1000
7
- ARG BUILDER_GID=1000
8
- ENV BUILDER_USER elastic
9
- ENV BUILDER_GROUP elastic
10
-
11
4
WORKDIR /code/elasticsearch-serverless-python
5
+ RUN mkdir -p /code/elasticsearch-serverless-python/build
12
6
13
- # Create user
14
- RUN groupadd --system -g ${BUILDER_GID} ${BUILDER_GROUP} \
15
- && useradd --system --shell /bin/bash -u ${BUILDER_UID} -g ${BUILDER_GROUP} -d /var/lib/elastic -m elastic 1>/dev/null 2>/dev/null \
16
- && mkdir /code/elasticsearch-serverless-python/build \
17
- && chown -R ${BUILDER_USER}:${BUILDER_GROUP} /code/
18
- USER ${BUILDER_USER}:${BUILDER_GROUP}
19
- COPY --chown=$BUILDER_USER:$BUILDER_GROUP . .
7
+ COPY pyproject.toml README.rst .
20
8
RUN python -m pip install \
21
9
-U --no-cache-dir \
22
10
--disable-pip-version-check \
23
11
.[dev]
12
+
13
+ COPY . .
You can’t perform that action at this time.
0 commit comments