Initial commit
Some checks failed
Build & Push Docker / build-and-push (push) Failing after 36s

This commit is contained in:
Aiden
2026-05-10 12:51:16 +10:00
parent 293513a6ce
commit 4e2b4aba25
7 changed files with 341 additions and 1 deletions

42
Dockerfile Normal file
View File

@@ -0,0 +1,42 @@
FROM debian:bookworm-slim AS downloader
ARG OPEN_STAGE_CONTROL_VERSION=1.30.3
ARG OPEN_STAGE_CONTROL_BASE_URL=https://openstagecontrol.ammd.net/packages
RUN apt-get update \
&& apt-get install -y --no-install-recommends ca-certificates curl unzip \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /tmp
RUN curl -fsSLo open-stage-control.zip \
"${OPEN_STAGE_CONTROL_BASE_URL}/open-stage-control_${OPEN_STAGE_CONTROL_VERSION}_node.zip" \
&& unzip -q open-stage-control.zip -d extracted \
&& mv extracted/open-stage-control_${OPEN_STAGE_CONTROL_VERSION}_node /open-stage-control
FROM node:20-bookworm-slim
LABEL org.opencontainers.image.title="Open Stage Control"
LABEL org.opencontainers.image.description="Container image for the Open Stage Control node-only release"
LABEL org.opencontainers.image.source="https://framagit.org/jean-emmanuel/open-stage-control"
ENV OSC_PORT=8080
ENV OSC_OSC_PORT=8080
ENV OSC_CACHE_DIR=/config
ENV OSC_REMOTE_ROOT=/data
WORKDIR /opt
COPY --from=downloader /open-stage-control /opt/open-stage-control
COPY docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh
RUN chmod +x /usr/local/bin/docker-entrypoint.sh \
&& mkdir -p /config /data
VOLUME ["/config", "/data"]
EXPOSE 8080/tcp
EXPOSE 8080/udp
ENTRYPOINT ["docker-entrypoint.sh"]
CMD []