You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
743 B
38 lines
743 B
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
|