-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (24 loc) · 893 Bytes
/
Copy pathDockerfile
File metadata and controls
25 lines (24 loc) · 893 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
FROM python:3.12-slim AS build
RUN apt-get update && apt-get install -y --no-install-recommends git ca-certificates \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /src
COPY . .
RUN python -m pip install --disable-pip-version-check \
"pip==26.2.1" \
"setuptools==83.0.0" \
&& python -m pip wheel --no-build-isolation --wheel-dir /wheels .
FROM python:3.12-slim
RUN useradd --create-home --uid 10001 aset
COPY --from=build /wheels /wheels
RUN python -m pip install --no-cache-dir --no-deps /wheels/* \
&& rm -rf /wheels
RUN mkdir -p /data /run/aset && chown -R aset:aset /data /run/aset
USER aset
EXPOSE 8443
ENV ASET_NODE_CONFIG=/run/aset/node.json \
ASET_PORT=8443 \
ASET_TLS_CERTFILE=/run/aset/tls-cert.pem \
ASET_TLS_KEYFILE=/run/aset/tls-key.pem \
ASET_ADMIN_TOKEN_FILE=/run/aset/admin-token
VOLUME ["/data"]
ENTRYPOINT ["aset-network-python-sqlite"]