-
-
Notifications
You must be signed in to change notification settings - Fork 361
Expand file tree
/
Copy pathDockerfile
More file actions
84 lines (68 loc) · 2.17 KB
/
Dockerfile
File metadata and controls
84 lines (68 loc) · 2.17 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
FROM node:22-bookworm-slim
LABEL org.opencontainers.image.source="https://github.com/pixlcore/xyops"
LABEL org.opencontainers.image.description="A complete task scheduler and server monitoring system."
LABEL org.opencontainers.image.licenses="BSD-3-Clause"
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y --no-install-recommends \
zip unzip xz-utils bzip2 procps lsof \
iputils-ping \
dnsutils \
openssh-client \
net-tools \
curl \
wget \
vim \
less \
sudo \
iproute2 \
tzdata \
build-essential \
python3 \
python3-distutils \
python3-setuptools \
pkg-config \
libc6-dev \
libssl-dev \
zlib1g-dev \
libffi-dev \
git \
ca-certificates \
gnupg
# install docker cli
RUN . /etc/os-release; \
install -m 0755 -d /etc/apt/keyrings; \
curl -fsSL "https://download.docker.com/linux/$ID/gpg" -o /etc/apt/keyrings/docker.asc; \
chmod a+r /etc/apt/keyrings/docker.asc; \
ARCH=$(dpkg --print-architecture); \
echo "deb [arch=$ARCH signed-by=/etc/apt/keyrings/docker.asc] \
https://download.docker.com/linux/$ID ${UBUNTU_CODENAME:-$VERSION_CODENAME} stable" \
> /etc/apt/sources.list.d/docker.list; \
apt-get update && apt-get install -y --no-install-recommends docker-ce-cli;
# cleanup apt
RUN apt-get clean && rm -rf /var/lib/apt/lists/*
# install uv
RUN curl -LsSf https://astral.sh/uv/install.sh | sh
RUN mv /root/.local/bin/uv /usr/local/bin/uv
RUN mv /root/.local/bin/uvx /usr/local/bin/uvx
WORKDIR /opt/xyops
COPY . .
ENV XYOPS_foreground=true
ENV XYOPS_color=true
ENV XYOPS_echo="xyOps Transaction Error error API Unbase Action Comm Job Workflow Maint Multi Scheduler SSO User Ticket Alert"
RUN npm install
# Fix permission issue with useragent-ng (sigh)
RUN chmod 644 node_modules/useragent-ng/lib/regexps.js
RUN node bin/build.js dist
# install xysat locally
RUN mkdir /opt/xyops/satellite; \
cd /opt/xyops/satellite; \
curl -L https://github.com/pixlcore/xysat/archive/main.tar.gz | tar zxvf - --strip-components 1; \
npm install; \
cd /opt/xyops;
RUN mkdir -p data
VOLUME /opt/xyops/data
RUN mkdir -p logs
RUN mkdir -p temp
EXPOSE 5522/tcp
EXPOSE 5523/tcp
CMD ["bash", "bin/container-start.sh"]