Repository navigation
Expand file tree
/
Copy pathDockerfile
More file actions
65 lines (54 loc) · 1.64 KB
/
Copy pathDockerfile
File metadata and controls
65 lines (54 loc) · 1.64 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
FROM node:24-bookworm-slim
LABEL org.opencontainers.image.source="https://github.com/pixlcore/xysat"
LABEL org.opencontainers.image.description="Remote satellite worker daemon for xyOps."
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/satellite
COPY . .
ENV NODE_ENV=production
ENV SATELLITE_foreground=true
ENV SATELLITE_echo=true
ENV SATELLITE_debug_level=5
RUN npm install
CMD ["bash", "container-start.sh"]