forked from coollabsio/openclaw
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (22 loc) · 818 Bytes
/
Dockerfile
File metadata and controls
31 lines (22 loc) · 818 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
ARG BASE_IMAGE=ghcr.io/coollabsio/openclaw-base:latest
FROM ${BASE_IMAGE}
ENV NODE_ENV=production
RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
nginx \
apache2-utils \
&& rm -rf /var/lib/apt/lists/*
# Remove default nginx site
RUN rm -f /etc/nginx/sites-enabled/default
COPY scripts/ /app/scripts/
RUN chmod +x /app/scripts/*.sh
ENV NPM_CONFIG_PREFIX="/data/npm-global" \
UV_TOOL_DIR="/data/uv/tools" \
UV_CACHE_DIR="/data/uv/cache" \
GOPATH="/data/go" \
PATH="/data/npm-global/bin:/data/uv/tools/bin:/data/go/bin:${PATH}"
ENV PORT=8080
EXPOSE 8080
HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 \
CMD curl -f http://localhost:${PORT:-8080}/healthz || exit 1
ENTRYPOINT ["/app/scripts/entrypoint.sh"]