docker-playground/osmo-gbproxy-latest/Dockerfile

38 lines
743 B
Docker

ARG USER
ARG DISTRO
FROM $USER/$DISTRO-obs-latest
# Arguments used after FROM must be specified again
RUN case "$DISTRO" in \
debian*) \
apt-get update && \
apt-get install -y --no-install-recommends \
osmo-gbproxy \
&& \
apt-get clean \
;; \
centos*) \
dnf install -y \
osmo-gbproxy \
;; \
*) \
echo "Unsupported distribution $DISTRO" \
exit 23 \
;; \
esac
WORKDIR /data
VOLUME /data
COPY osmo-gbproxy.cfg /data/osmo-gbproxy.cfg
# work-around for stupid docker not being able to properly deal with host netdevices or start
# containers in pre-existing netns
COPY pipework /usr/bin/pipework
COPY docker-entrypoint.sh /docker-entrypoint.sh
CMD ["/docker-entrypoint.sh"]
EXPOSE 23000/udp 4246/tcp 4263/tcp