-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathDockerfile
More file actions
36 lines (31 loc) · 964 Bytes
/
Dockerfile
File metadata and controls
36 lines (31 loc) · 964 Bytes
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
FROM python:3.15.0a8-slim
ENV DEVPISERVER_SERVERDIR=/devpi/server
RUN mkdir -p $DEVPISERVER_SERVERDIR && \
mkdir /entrypoint.d
COPY requirements.txt /requirements.txt
# Do a single run command to make the intermediary containers smaller.
RUN set -ex && \
# Install packages necessary during the build phase (for all architectures).
apt-get update && \
apt-get install -y --no-install-recommends \
build-essential \
libffi8 \
libffi-dev \
cargo \
&& \
# Install Python dependencies.
pip install --no-cache-dir -r /requirements.txt && \
# Remove everything that is no longer necessary.
apt-get remove --purge -y \
build-essential \
libffi-dev \
cargo \
&& \
apt-get autoremove -y && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* && \
rm -rf /root/.cache
COPY entrypoint.sh /
ENTRYPOINT [ "/entrypoint.sh" ]
CMD [ "" ]
EXPOSE 3141