-
-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathDockerfile
More file actions
32 lines (22 loc) · 692 Bytes
/
Dockerfile
File metadata and controls
32 lines (22 loc) · 692 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
FROM debian:trixie-slim
LABEL maintainer="xnorpx@outlook.com"
LABEL description="Blue Onyx docker container"
ENV TARGET_FOLDER=/models
# Install dependencies
RUN apt-get update && \
apt-get install -y --no-install-recommends openssl && \
rm -rf /var/lib/apt/lists/*
# Create non-root user
RUN useradd --create-home --no-log-init blueonyx
# Set working directory
WORKDIR /app
# Copy application files and set ownership
COPY --chown=blueonyx:blueonyx blue_onyx libonnxruntime.so ./
# Copy model files and set ownership
COPY --chown=blueonyx:blueonyx models/* ./
# Switch to non-root user
USER blueonyx
# Expose port
EXPOSE 32168
# Define entrypoint
ENTRYPOINT ["./blue_onyx"]